Created
December 17, 2009 22:56
-
-
Save isaacs/259105 to your computer and use it in GitHub Desktop.
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
// bad! returns undefined | |
return | |
{ | |
foo : "bar", // line labeled "foo", containing string-expression "bar" | |
bar : 1 // line labeled "bar" containing number expression "1" | |
} | |
// good! returns object | |
return { | |
foo : "bar", | |
bar : "baz" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment