loading...

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

Collapse
moyarich profile image
moyarich

so many people are confused about what hoisting is. Let me start off by bursting the bubble with one statement

All declarations are hoisted (var, let, const, function, class)

Collapse
thecodepixi profile image
Emily A. Pixi Author

You're absolutely right and that's a point I didn't make clearly enough in the article. Might merit an edit.