Exactly what Alexander said. In addition let and var can be used. It is most common preactice now to use let and const though. I will be digging deeper into the different types later in the blog series. For now though, const is used to create a variable that can not be changed. Var can be changed anywhere. Let can be changed in the Block scope of the function.
Exactly what Alexander said. In addition let and var can be used. It is most common preactice now to use let and const though. I will be digging deeper into the different types later in the blog series. For now though, const is used to create a variable that can not be changed. Var can be changed anywhere. Let can be changed in the Block scope of the function.
Thanks!