Tech
Variables in JavaScript
What is a Variable?
A variable is like a box where we keep something. We give the box a name (a label), and we put a value inside it. Later, we can look inside the box, use the value, or change it to something else.
For example, think of a school bag. The bag stays the same, but what you put inside it can change. Today you might put books, tomorrow you might put lunch. The bag is like the variable, and whatever is inside it is like the value.
let studentName = " Abishek "...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to