how to use create to variables in javascript code example
Example 1: Create variable javascript
//Assigns the value bar to the variable foo
var foo = bar;
Example 2: how to create variables using javascript
var myVar; //unitialized variable( can be intiallized later )
var number = 1; //number
var string = " hello world " ; //string
var boolean = true ; //boolean
myVar = function(){ //variable can hold function
};