Discussion on: Hoist Your Vars! (Variable Hoisting in JavaScript)

tunaxor profile image
Angel D. Munoz

the times I need to do this is to show a default for something
or just ensure there is a valid value returned from the function, most of the time this is used on places where failure is not critical or it's a "top level" UI element function call

I'd say it's kind of fail behind scenes keep the good face up