4. How to create a variable in JavaScript - let, var and const

Опубликовано: 12 Октябрь 2024
на канале: Miss Xing (邢老师)
490
27

#JavaScript #MissXing ‪@MissXing‬
In this video, we explained 3 different ways to declare a variable in JavaScript: let, var and const.
we recommend to use const by default, if you need to change the value to the variable later, then change const to let. Don't use var unless you're very certain.
We'll explain the difference between let and var in the future lesson.

Source code:
https://github.com/TinaXing2012/javas...