Use Destructuring Assignment with the Rest Parameter to Reassign Array Elements (ES6) freeCodeCamp

preview_player
Показать описание
Do you need more help with coding?
════════════════════════════

Certification: JavaScript Algorithms and Data Structures
Course: ES6
Lesson: Use Destructuring Assignment with the Rest Parameter to Reassign Array Elements
freeCodeCamp tutorial

In this lesson, we learn how to use destructuring assignment with the rest parameter to reassign array elements.

Let's Connect 💯:
════════════════════════════
Рекомендации по теме
Комментарии
Автор

They updated this question, so your answer doesnt work anymore. Here's the newest question they have:

function removeFirstTwo(list) {
// Only change code below this line
const shorterList = list; // Change this line
// Only change code above this line
return shorterList;
}

const source = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const sourceWithoutFirstTwo = removeFirstTwo(source);

Please help, as i cannot move forward untill i get the answer, and the GitHub one is old too.

ev_dash