Created
August 23, 2012 10:56
-
-
Save dansondergaard/3435481 to your computer and use it in GitHub Desktop.
JavaScript is fucked
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 hello() { | |
return { | |
a: 2 | |
}; | |
} | |
function hello2() { | |
return | |
{ | |
a: 2 | |
}; | |
} | |
console.log(hello()); // { a: 2 } | |
console.log(hello2()); // undefined | |
// Yeah, whitespace matters... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment