in this video, I will explain Use let and const for Block-Scoped Variables
ES6 introduces two new keywords to create variables - let and const. Both of them are block-scoped, as opposed to var which is scoped to the surrounding function. The more limited scope of let and const makes them more predictable. In this lesson, you'll learn how to let and const work, the difference between function and block scope, and how const is only a sort of constant.
🚀 Join Discord - / discord
▬ 🔗 Chapters ▬▬▬▬▬▬▬▬▬▬
⌛️ 00:00:00 function vs block scope
⌛️ 00:02:46 var - let inside a closure
⌛️ 00:04:30 const
⌛️ 00:07:14 outro
▬ 🔗 Resources ▬▬▬▬▬▬▬▬▬▬
⭐️ Source Code: https://github.com/moelzanaty3/comple...
⭐️ var let const: https://www.freecodecamp.org/news/var...
▬ 🔥 Contact Me ▬▬▬▬▬▬▬▬▬▬
🚀 BIO: https://moelzanaty3.bio.link/
💖 Become a Patron: Show support & get perks! / mohammedelzanaty
☕️ You Don't need to meet me to buy a coffee: https://www.buymeacoffee.com/moelzanaty3
🔗 GitHub: https://github.com/moelzanaty3
🔗 LinkedIn: / moelzanaty3
🔗 Twitter: / moelzanaty3
📪 [email protected]
▬ ⚙️ My Equipment Gear ▬▬▬▬▬▬▬▬▬▬
🌟 https://kit.co/mohammdelzanaty/my-you...
▬ 🎨 My Editor Settings ▬▬▬▬▬▬▬▬▬▬
🌟 Night Owl Color Theme.
🌟 Dank Mono Font
or more information - • My Code Editor: Visual Studio Code, ...