0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Copy an Array with Spread

Spread syntax places the values from an existing array into a new array. Changing the new outer array does not change the original.

Example

const original = ["a", "b"]; const copy = [...original];

Your task

Copy topics into plannedTopics with spread syntax. Add objects only to the copy, then display both arrays.