Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created December 17, 2009 22:56
Show Gist options
  • Save isaacs/259105 to your computer and use it in GitHub Desktop.
Save isaacs/259105 to your computer and use it in GitHub Desktop.
// 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