Use the Spread Operator to Evaluate Arrays In-Place help

Tell us what’s happening:

Your code so far


const arr1 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY'];
let arr2;
(function() {
  "use strict";
  arr2 = []; // change this line
})();
console.log(arr2);

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/use-the-spread-operator-to-evaluate-arrays-in-place

someone please explain little about it

What is the issue?

You are asked to copy arr1 in arr2

The hints has a video explaining it more and there is always MDN.

Please try

arr2 = [ …something ] # to spread something elements to arr2