JavaScript Best Practices: Objects

  • Use the literal syntax for object creation.
  • Don’t use reserved words as keys.
  • Use readable synonyms in place of reserved words.