???
?: What does the following function call log to console:
function log() {
console.log(greeting);
var greeting = 'Hello!';
}
log();
( ) 'Hello!' (X) undefined ( ) 'undefined is not a function'
?: What does the following function call log to console:
log();
function log() {
console.log(greeting);
var greeting = 'Hello!';
}
( ) 'Hello!' (X) undefined ( ) 'undefined is not a function'
?: What does the following function call log to console:
log();
var log = function() {
console.log(greeting);
var greeting = 'Hello!';
}
( ) 'Hello!' ( ) undefined (X) 'log is not a function'
?: What does the following function log to console:
function log(s) {
var s = 'Mr. X';
console.log(s);
}
log('Hello!');
( ) 'Hello!' (X) 'Mr. X' ( ) undefined ( ) 'undefined is not a function'
???