This video covers how JavaScript handles variable assignment (hoisting) vs. other C based languages. It will make it clear why let and const were added in ES6 (ECMAScript)!
You don't need to know Python, C, Java, or Ruby to compare. We will just be doing basic loops and functions to illustrate and they all look/work pretty much the same (thank you C!).
I use repl instead of VS Code so it's easy to hop between languages without doing a lot of environment work.
On this page of the site you can watch the video online JavaScript Variable Scope vs Python/C/Java/Ruby/PHP - const & let To The Rescue! with a duration of hours minute second in good quality, which was uploaded by the user Good Morning Developers 28 November 2023, share the link with friends and acquaintances, this video has already been watched 69 times on youtube and it was liked by 4 viewers. Enjoy your viewing!