Definition : Hoisting is a phenomenon in JavaScript by which you can access the variables and functions even before we have initialized them. Yeah, you heard it right... :) it will not throw any error. Let us take a simple example Can you tell me Wha...
shashankorthiwada.hashnode.dev11 min read
Good one Shashank Korthiwada.
An interesting addition to this article would be to talk about using let vs var for variable declaration and how they are different in hoisting, perhaps?
Thanks!
Suyash Pradhan
Frontend Engineer | UI/UX | Reactjs | React Native | TypeScript
Good Read!