ES6 - Destructuring via rest elements

Tell us what’s happening:

My work should work fine but I am getting an error message

Your code so far

function removeFirstTwo(list) {
  return list;
}

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

Your browser information:

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

Challenge Information:

ES6 - Destructuring via rest elements

removeFirstTwo() should return a sub-array of the original array list with the first two elements omitted.”

This means you will need to make changes to the removeFirstTwo function. The code you pasted above doesn’t have any changes to that function.