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
In questa pagina del sito puoi guardare il video online Why Programmers use const when declaring variables in Javascript? della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Hussein Nasser 21 aprile 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 808 volte e gli è piaciuto 39 spettatori. Buona visione!