Home of web learners
variable means where you can store your data and you can change data of variable
Lets look an example:
var a = "hey,how are you?";
hey,how are you?
Its very easy to use,you have to give var before variable name and then assign the value,thats it.
Now you can use this variable,here we use in document.write which is used to show output,here we show a variable data