Tell us what’s happening:
the instructions say to remove the first two elements, wich i think would be 0 and 1, but the test will not pass unless you use 0 and 2? or am i missunderstanding something???
Your code so far
function htmlColorNames(arr) {
// change code below this line
arr.splice(0,2, "DarkSalmon", "BlanchedAlmond");
// change code above this line
return arr;
}
// do not change code below this line
console.log(htmlColorNames(['DarkGoldenRod', 'WhiteSmoke', 'LavenderBlush', 'PaleTurqoise', 'FireBrick']));
Your browser information:
User Agent is: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-data-structures/add-items-using-splice