Variables
A variable is a named box that holds a value. Use const for values that never get reassigned and let for values that change. Avoid var in new code.
Names are case sensitive and usually written in camelCase, such as firstName.
Example
const school = "Justice Tech School";
let students = 100;
students = students + 25;
console.log(school);
console.log(students);Exercise
Declare a constant called age with the value 20.
age = 20;Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.