DEV Community

Discussion on: Do You Still Use Var? If So Why?

 
vonheikemen profile image
Heiker

That is what I'm trying to avoid. And you could still do the same with var.

I choose to believe var's implicit hoisting is a feature and not a bug.

Thread Thread
 
karataev profile image
Eugene Karataev

I agree, this is a valid use case for var if you prefer implicit hoisting.