Created
March 3, 2010 14:50
-
-
Save jakearchibald/320656 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
| // this code doesn't work as expected in firebug, due to the way it eval's code | |
| // (showing that http://www.slideshare.net/douglascrockford/crockford-on-javascript-act-iii-function-the-ultimate/9 isn't quite true) | |
| foo(); // hello | |
| function foo() { | |
| alert('hello'); | |
| } | |
| bar(); // error 'bar is not a function' | |
| var bar = undefined; | |
| bar = function bar() { | |
| alert('hello'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment