What is a code block? What are some examples of a code block?
structure of source code which is grouped together.
{
{}
What does block scope mean?
the area within if, switch conditions or for and while loops.
What is the scope of a variable declared with const or let?
block scoped
What is the difference between let and const?
let variables can be updated but not re-declared; const variables can neither be updated nor re-declared
Why is it possible to .push() a new value into a const variable that points to an Array?
because youre not reassign
How should you decide on which type of declaration to use?
if you plan on changing use let if not then use const