Javascript Let & Const Explained Simply

Publié le: 06 février 2022
sur la chaîne: DevSage
4,536
114

'let' and 'const' are JavaScript keywords that were introduced in ES6 that allow you to declare variables that are limited to the scope of a block statement. The 'var' keyword, on the other hand, declares a variable globally or locally to an entire function. let and const are similar when it comes to scoping rules, but variables declared with const are read-only. const variables cannot be re-assigned after initially being declared.


📚Materials/References:
MDN Web Docs:
let - https://developer.mozilla.org/en-US/d...
const - https://developer.mozilla.org/en-US/d...

🌎 Find Me Here:

Twitter:   / realdevsage  
Ebooks: https://payhip.com/devsage
Discord:   / discord  
Merch: https://cottonbureau.com/people/devsage

⏰ Timestamps
1:05 - Difference between var and let/const
2:29 - let explained
6:05 - const explained


Sur cette page du site, vous pouvez voir la vidéo en ligne Javascript Let & Const Explained Simply durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur DevSage 06 février 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 4,536 fois et il a aimé 114 téléspectateurs. Bon visionnage!