Skip to content

Instantly share code, notes, and snippets.

@shevchenkonik
Created October 27, 2016 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shevchenkonik/0b6186d03fd800c34d311c63810e7041 to your computer and use it in GitHub Desktop.
Save shevchenkonik/0b6186d03fd800c34d311c63810e7041 to your computer and use it in GitHub Desktop.
console.log(laterFunction);
var laterFunction = “Hey, define me later!”
// Output: Hey, define me later!
var laterFunction = "Hey, define me later!"
console.log(laterFunction);
// Output: Hey, define me later!
(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');
}
}());
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