var scopes to function
Jan 7, 2018 13:30 · 26 words · 1 minute read . lroellin
function foo() {
{
var x = 5
let y = 6
const z = 7
}
console.log(x)
console.log(y)
console.log(z)
}
foo() // 5, undefined, undefined