📜  如何在javascript代码示例中分配变量

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

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