ES6 - Destructuring via rest elements

Tell us what’s happening:
Describe your issue in detail here.
I’m having trouble understanding rest elements. Somebody please help
Your code so far

function removeFirstTwo(list) {
  // Only change code below this line
  const shorterList = ; // 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);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: ES6 - Destructuring via rest elements

Link to the challenge:

Hi, trying is free, you can copy the example into the window to see what it means :smiley:


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.