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'.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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'.