temporal dead zone in es6 working with var code example
Example: temporal dead zone in es6
let x = 2;function foo(y = x , x) { x = 3; console.log(x)}foo();
let x = 2;function foo(y = x , x) { x = 3; console.log(x)}foo();