📜  IIFE(立即可调用函数表达式)- Javascript 代码示例

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

代码示例1
var result = (function () {
    var name = "Barry";
    return name;
})();
// Immediately creates the output:
result; // "Barry"