Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created July 20, 2011 01:30
Show Gist options
  • Select an option

  • Save ELLIOTTCABLE/1094155 to your computer and use it in GitHub Desktop.

Select an option

Save ELLIOTTCABLE/1094155 to your computer and use it in GitHub Desktop.
// The following two are identical. The second, in my opinion, is clearer.
// var foo = {}
var foo = new(Object) ()
foo.qux = 123000
foo.quux = foo.qux + 456
// ↑ will work. ↓ will not.
var bar = {
qux = 123000
, quux = bar.qux + 456 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment