Question 4 of 10
Medium

What will be the output of the following code?

123456
let x = 10
function foo() {
console.log(x)
let x = 20
}
foo()