What is a code block? What are some examples of a code block?
A block of statement within curly braces { };
Examples: if else, for, do while, while; function code block;
What does block scope mean?
An area within the block where variables can be referenced
What is the scope of a variable declared with const or let?
Let = block-scoped; Const = block-scoped
What is the difference between let and const?
Const can’t be reassigned while let can.
Why is it possible to .push() a new value into a const variable that points to an Array?
The value within the array is mutable
How should you decide on which type of declaration to use?
If the variable is not going to be reassigned, use ‘const’. If it will be reassigned, then use ‘let’