DEV Community

Discussion on: How do you prefer to learn? Videos, Books, both?

Collapse
 
jcsh profile image
Justin Ho

Hi scruong,

Thanks for your tip about variable hoisting in Javascript!

I also assumed that to be true and finally looked into how that is processed under the hood in the MDN Web Docs and this more concise medium article and finally understand that it's not true 'hoisting'.

That being said, unless I was working in academia or with the V8 engine directly, I probably wouldn't call it a 'lie' since the end result seems to be the same and many Javascript developers already came to a conclusion that it is what they mean when they call it 'hoisting'.