What will the console log in this example?
var foo = 1
var foobar = function() {
console.log(foo)
var foo = 2
}
foobar()
Output
undefined
What will the console log in this example?
var foo = 1
var foobar = function() {
console.log(foo)
var foo = 2
}
foobar()
Output
undefined
For further actions, you may consider blocking this person and/or reporting abuse
Mike Young -
Mike Young -
ANIRUDDHA ADAK -
Vishnu Sivan -
Top comments (0)