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

Spread - Copying an Array

Arrange the elements of creating an array copy using spread:

Items to put in order

  • const copy =
  • [...
  • ]
  • original
Show the answer

Correct order:

  1. const copy =
  2. [...
  3. original
  4. ]