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

Exercise prompt

Add an Array Item Immutably

Array spread can add a value while preserving the original array.

Your task

Create updatedTasks containing every original task followed by test. Do not call push, unshift, or assign to an index. Display both arrays.