- What is variable
What is variable
We all know in every programming language data is stored in some memory location. So variable is nothing but the name corresponding to the memory location.
//here msg is variable name and “Hello World” is assigned value
var msg=”Hello World”;