Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
  
};
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #create #variables #javascript
ADD COMMENT
Topic
Name
9+1 =