Technically, your solution is correct, but you changed things you shouldn’t have changed and it is confusing the tests. This is the starter code:
function removeFirstTwo(list) {
// Only change code below this line
const shorterList = list; // Change this line
// Only change code above this line
return shorterList;
}
The comments tell you to only change one line, but you made changes to both lines. Fix your solution so you only change the first line.
Even though the code comment and the location of the return below it do dictate that you can’t change the shorterList identifier I think it might be worth adding it to the requirements and maybe even having a test for it.
Use a destructuring assignment with the rest syntax to emulate the behavior of Array.prototype.slice(). removeFirstTwo() should return a sub-array of the original array list with the first two elements omitted and the rest of the elements added to shorterList.