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:
- const
- dino
- =
- { name: 'Rex' }