Const/Let/Var Flashcards
1
Q
What are the two buckets that features in ES6?
A
1) Features that are syntatic sugar
2) New ideas, constructs, or functions to the language
2
Q
What is const?
A
It is a keyword that is used to declare variables where we expect the value to never change.
3
Q
What is let?
A
Used to declare variables when we expect the value of the variable to change over time
4
Q
Why did the change for const and let happen?
A
Complex JS programs…variables all over the place. Legibiliity letting engineers know something is not going to change vs something that will