Created
May 14, 2013 17:47
-
-
Save jgorset/5577967 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
foo(); // Logs "foo". | |
function foo() { console.log("foo") } | |
foo(); // Raises "ReferenceError: foo is not defined". | |
foo = function() { console.log("foo") } | |
foo(); // Raises "TypeError: undefined is not a function". | |
var foo = function() { console.log("foo") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment