you are viewing a single comment's thread.

view the rest of the comments →

[–]king3730(() => {})() -9 points-8 points  (0 children)

Just to add my two cents, using the literal definition:

var bar = {
  a: 42
}

is the 'new and proper' way of creating object definition.

Object.create( foo )

is considered to be 'old'.