JavaScript Variables Explained 2026 #2 | How JS Stores Data

Understand how JavaScript remembers data using variables like let, var, and const. Beginner-friendly tutorial for 2026.

learn JavaScript variables and data storage in this beginner-friendly 2026 tutorial. Understand how JavaScript remembers values using let, var, and const with simple explanations and examples.

 

------------------------------------------------------------------------------code is here----------------------------------------------------------------------

//Understand what variables are

//Know the difference between let and const

//Store and use data like a real application

//Avoid the most common beginner mistakes


 

let age = 33;


 

age = 25;

console.log(age);


 

const birthday = 1990;



 

console.log(birthday);


 

let basicSalary = 30000;

let bonus = 5000;

let totalSalary = basicSalary+bonus;

console.log("Total Salary is = "+totalSalary);

--------------------------------------------------------------------end------------------------------------------------------------------------------------------