What does the code snippet to the right output by console.log?
console.log
let a = 1; (function() { let foo = () => a let a = 2; console.log(foo()) }())
Source Fromopen in new window