In this video we will learn the benefits of using "const" over "let" and for sure over "var".
const
Cannot reassign it, js engine can make performance discussions based on that
Scoped in blocks
If objects or arrays, const can be modified
Summary
Always use const
if your variable need to be reassigned use let
avoid using var as it attaches itself to the window variable
Stay Awesome!
Hussein
En esta página del sitio puede ver el video en línea Why Programmers use const when declaring variables in Javascript? de Duración hora minuto segunda en buena calidad , que subió el usuario Hussein Nasser 21 abril 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 808 veces y le gustó 39 a los espectadores. Disfruta viendo!