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(