📅  最后修改于: 2022-03-11 15:03:30.228000             🧑  作者: Mango
代码示例1
var a = 10;
myFunction();
function myFunction(){
a = 20;
}
alert("Value of 'a' outside the function " + a); //outputs 20