Put in order · JavaScript and TypeScript course · Module 2: Functions, Arrays and Objects

Object Literal

Arrange the elements of creating an object with a literal:

Items to put in order

  • const
  • =
  • { name: 'Rex' }
  • dino
Show the answer

Correct order:

  1. const
  2. dino
  3. =
  4. { name: 'Rex' }