Closure and execution stack in javascript

后端 未结 0 1370
误落风尘
误落风尘 2021-01-24 07:32

I\'m trying to understand how does execution stack work in javascript.

var x = 1;

function f1() {
  console.log(x);
}
function f2() {
  var x = 2;
  f1();
}

f2(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题