Skip to content

Instantly share code, notes, and snippets.

@dansondergaard
Created August 23, 2012 10:56
Show Gist options
  • Save dansondergaard/3435481 to your computer and use it in GitHub Desktop.
Save dansondergaard/3435481 to your computer and use it in GitHub Desktop.
JavaScript is fucked
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