Hi, I stormed my brain for 2 hours and this is the best I could come up with. It satisfies 3 out of 4 requirements, the one missing being " Destructuring on list should be used".
Would really appreciate some hint. Thanks.
function removeFirstTwo(list) {
// Only change code below this line
const [a, b, ...arr] = list; // Change this line
console.log(arr);
// Only change code above this line
return arr;
}
const source = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const sourceWithoutFirstTwo = removeFirstTwo(source);
I am just stating what I think: that I didnt receive in this particular instance the help that I hoped for. On the other hand I realize this is a free resource, I am in no position to demand something. However, right or wrong as I might be it still doesnt qualify as being “rude” in my honest opinion.
You may not appreciate my spending my own time (which I volunteer) to suggest to you where the mistake was made in the code, that does not mean that you may denigrate this as “nothing”.
Thanks for your honesty. I will use my time elsewhere.
We have blurred this solution so that users who have not completed this challenge can read the discussion in this thread without giving away the solution.