Javascript Hoisting Explained

Published: 16 June 2019
on channel: DevSage
5,024
117

What does 'hoisting' mean?
Hoisting is JavaScript's default behavior of moving variable declarations (NOT initializations) to the top of the current scope (either to the top of the script or top of the current function). Variables and constants declared with let or const are not hoisted. Hoisting is (to some developers) an unknown or overlooked behavior of JavaScript. To avoid bugs, you should consider declaring your variables at the beginning of every scope.


🌎 Find Me Here:

Twitter:   / realdevsage  
Ebooks: https://payhip.com/devsage
Discord:   / discord  
Merch: https://cottonbureau.com/people/devsage


On this page of the site you can watch the video online Javascript Hoisting Explained with a duration of hours minute second in good quality, which was uploaded by the user DevSage 16 June 2019, share the link with friends and acquaintances, this video has already been watched 5,024 times on youtube and it was liked by 117 viewers. Enjoy your viewing!