Created
July 28, 2013 08:25
-
-
Save samueljackson92/6097935 to your computer and use it in GitHub Desktop.
JS formatting quirk
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
function foo() { | |
return { | |
bar : "Hello World!" | |
} | |
} | |
function foo2() | |
{ | |
return | |
{ | |
bar : "This won't work!" | |
} | |
} | |
a = foo() | |
console.log(a.bar) | |
b = foo2().bar | |
console.log(b.bar) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment