xxxxxxxxxx
29
// Exercise: answer the questions below on paper before writing the code.
let a = 28;
console.log(a); // What is the output?
console.log(a / 2); // What is the output?
console.log(28 / 2); // What is the output?
let b; // Declaration.
console.log(b); // What is the output?
b = 5; // Assignment statement.
console.log(b); // What is the output?
a = 12; // Assign a new value.
console.log(a); // What's the output?
const c = 15;
console.log(c);
// c = 16; // Error because you cannot change the value of a constant.
a = a + 1;
console.log(a); //What's the output?
/*
From now on...
Read "=" as "gets."
This emphasizes that "=" assigns a new value to a variable.
*/