JavaScript Variables Explained Simply
Variables can be denoted with the keywords let or const. The accepted convention is to use const as much as possible, and let when the variable is likely to be re-assigned
let lessonsCompleted = 2;
lessonsCompleted = lessonsCompleted + 1;
const learner = { name: "Ada" };
learner.name = "Grace";
console.log(lessonsCompleted);
console.log(learner.name); AI panel
Ask AI to clarify the parts you don’t fully understand, or go more in depth with MDN documentation.