The whole point of this challenge is to copy the array arr1
to arr2
in place w/ spread operator.
'use strict';
const arr1 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY'];
let arr2 = [...arr1]
console.log(arr2)
This seems all too pointless, as you can just do:
let arr2 = arr2
While is the same thing without spread operator.
The explanation of this use of the spread operator is in the challenge seems very weak and vague. Can someone please better explain what the use is?