This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(laterFunction); | |
var laterFunction = “Hey, define me later!” | |
// Output: Hey, define me later! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var laterFunction = "Hey, define me later!" | |
console.log(laterFunction); | |
// Output: Hey, define me later! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
radiohead(); // "I'll laugh until my head comes off" | |
placebo(); // TypeError: placebo is not a function | |
function radiohead () { | |
console.log('I\'ll laugh until my head comes off'); | |
} | |
var placebo = function () { | |
console.log('You come on just like special K'); | |
} | |
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var outputValue = 'placebo'; | |
(function() { | |
console.log(outputValue); // undefined | |
var outputValue = 'radiohead'; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment