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 fahadahmad.substack.com #
 
PREVIOUS NEXT
Tagged: #create #variables #javascript
ADD COMMENT
Topic
Name
1+5 =