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
Rahul Raveendran -
Cloud Native Engineer -
Olga Lugacheva -
Mike Young -
Top comments (0)