Skip to content

Instantly share code, notes, and snippets.

@phiggins42
Created May 13, 2010 12:20
Show Gist options
  • Save phiggins42/399769 to your computer and use it in GitHub Desktop.
Save phiggins42/399769 to your computer and use it in GitHub Desktop.
(function(){
var wow = function(arg){ console.log(arg); };
wow(bar); // bar defined later, but ready
wow(foo); // foo undefined just yet
var foo = function(){}
wow(foo); // foo now works
function bar(){}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment