In this demonstration we learn how to create a variable in java script. We know that variable is a location in memory which stores some values. In java script we create any type of variable by using “var” keyword. The data type of “var” is decided at run type on the basis of value. In this demonstration I had created several types of variable by using “var” keyword.
Write down following code snippet to perform this demonstration
//Writing values of the variable on browser by using document.write() method.