any data type to a variable and later you can assign a value of different data type to the same variable. For example: var value= ; var value=”JavaScript”; . . JavaScript Literals A literal is a fixed value given to a variable in source code.
Literals are often used to initialize variables. Values may be Integer, Floating point, Character, String and Boolean. For Example, var = ; //Integer constant// var = . ; //Floating point constant// var =’A’; //Character constant// var =”Raman”; //String constant// var =true; //Boolean constant//