You can think of a variable like a bucket used to hold or store substance, in this the substance to be stored is data to be used within a program.
Use cases and Examples
var x = 1; var result = 2 +x; console.log("result contains: ", result);
x is assigned the value
1 and result to the sum of
x which should be
Variables usually can store whatever data type is available within the programming language under discussion.All terms