Why Programmers use const when declaring variables in Javascript?

Publicado em: 21 Abril 2019
no canal de: Hussein Nasser
808
39

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


Nesta página do site você pode assistir ao vídeo on-line Why Programmers use const when declaring variables in Javascript? duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Hussein Nasser 21 Abril 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 808 vezes e gostou 39 espectadores. Boa visualização!