So basically, …arr helps to convert array which can be passed as arguments in different functions ?
Please correct me if I’m wrong.
Thanks
Your code so far
const arr1 = ['JAN', 'FEB', 'MAR', 'APR', 'MAY'];
let arr2;
arr2 = []; // Change this line
arr2 = arr1
console.log(arr2);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: ES6 - Use the Spread Operator to Evaluate Arrays In-Place
Link to the challenge: