📌  相关文章
📜  如何在javascript代码示例中更改变量值

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

代码示例1
var variable = 10;

function start() {
  variable = 20;
}
console.log(variable + 20);

// Answer will be 40 since the variable was changed in the function