temporal dead zone in es6 kyle simposn 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();