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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is const?

A

It is a keyword that is used to declare variables where we expect the value to never change.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is let?

A

Used to declare variables when we expect the value of the variable to change over time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly