Variable for String

Variable is used to store information to be used later. A variable is created using 'var' followed by the name you choose. While using variable for string, values must be written under quotes.

Code Structure
var name = "Macbook";
alert(name); 

Share this

Related Posts