Why does "var" get replaced by "let" and "const" in JavaScript?

Опубликовано: 27 Октябрь 2024
на канале: Tigran Tech
96
6

In this video, I'm going over the reason why JavaScript standards have been changed to replace a "var" keyword with "let" and "const", which gave the ability to write more contextual libraries and self-contained JavaScript modules.

-----
Website: https://tigran.tech​
Twitter:   / tigranbs​  
Medium:   / tigranbs​  
Github: https://github.com/tigranbs