Answers for "how to initialize a variable in javascript"

0

how to create a variable in javascript

// you an pass in strings or a number 

var exampleVariable = 'Example string' // this is a normal string 
var anotherExample = 839;
Posted by: Guest on June-25-2021
-1

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
  
};
Posted by: Guest on February-09-2021

Code answers related to "how to initialize a variable in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language