Tell us what’s happening:
Describe your issue in detail here.
Is it the console.log(arr2); or i copy and paste const arr2 = [“JAN”, “FEB”, “MAR”, “APR”, “MAY”]; and put with arr1? Your code so far
const arr2 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY'];
let arr1[];
arr2 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY'];
arr1 = [...arr1]; // Change this line
console.log(arr2);
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Challenge: ES6 - Use the Spread Operator to Evaluate Arrays In-Place
You added things that you shouldn’t have. You were only supposed to change one line (the line with the comment that says “Change this line”). I would restart the lesson to get the original JS back and then only change that line.
Explain in your own words what this is supposed to do.