taniarascia / comments

Comments
7 stars 0 forks source link

understanding-variables-scope-hoisting-in-javascript/ #22

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Understanding Variables, Scope and Hoisting in JavaScript | Tania Rascia

This article was originally written for DigitalOcean. Introduction Variables are a fundamental programming concept, and one of the first and…

https://www.taniarascia.com/understanding-variables-scope-hoisting-in-javascript/

johnp2266 commented 3 years ago

It's not entirely correct to say let/const don't hoist. It's just that they cause temporal dead zone. Great article though. Love the explanation.

https://wsvincent.com/javascript-temporal-dead-zone/

taniarascia commented 3 years ago

That is quite the technicality.

michaelacook commented 3 years ago

Great article. I don't think about this explicitly on a regular basis, so this article (and others like it you've written) are simultaneously great for beginner learners as well as someone like me with a few years experience looking to clarify stuff I should be able to articulate but can't.