Loading lesson…
New idea
Use const for a value that is never reassigned and let for one that changes. Avoid var: it is function-scoped and hoisted, which causes surprises. const blocks *reassigning* the name, not changing what an object holds.
const price = 10;
let count = 1;
count = count + 1;Read the official docs ↗