📜  如何使用 javascript 代码示例创建变量

📅  最后修改于: 2022-03-11 15:02:01.490000             🧑  作者: Mango

代码示例2
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
  
};