Why is the test telling me that **arr** is not a subarray

Tell us what’s happening:
this is what the console is logging:
[ 3, 4, 5, 6, 7, 8, 9, 10 ]
[ 3, 4, 5, 6, 7, 8, 9, 10 ]
so why is the test telling me that arr is not a subarray of source with [ 3, 4, 5, 6, 7, 8, 9, 10 ]
Your code so far


const source = [1,2,3,4,5,6,7,8,9,10];
function removeFirstTwo(list) {
"use strict";
// Only change code below this line
list = source;
const [, , ...arr] = list; // Change this line
// Only change code above this line
console.log(arr); 
return arr;
}

console.log(removeFirstTwo()); 

Your browser information:

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

Challenge: Use Destructuring Assignment with the Rest Parameter to Reassign Array Elements

Link to the challenge:


Hello! This is what I am seeing your code return - is this not correct?

yes it is but the test won’t go through!!

this shows up:
// running tests

arr

should be

[3,4,5,6,7,8,9,10]

// tests completed // console output [ 3, 4, 5, 6, 7, 8, 9, 10 ] [ 3, 4, 5, 6, 7, 8, 9, 10 ]

This line is correct. However, you’ve modified other lines in the code which is causing the tests to fail.
Click on Reset All Code, then Reset This Lesson, to bring the code back to default.
Upon completing that, change JUST this line in your code and you should pass the tests.

Then how is source put into list??

OK got it now THANKS!!!

the function is called with source as argument