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