📜  在声明时调用匿名函数 - Javascript 代码示例

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

代码示例1
var step = (function(){
    // this code is executed immediately, 
    // the return value is assigned to `step` 
})();