Did I cheat or is this the correct way to achieve this task

Link to challenge https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-data-structures/remove-items-using-splice/

Please do not place screenshot of code, plain text please.

What does challenge wants? you may please share the link of challenge too?

1 Like

My bad I have added blur to the image

Looks like you did it right, It’s not about cheating. Challenge wanted to test you as you know usage and result of splice function.

Good enough for me so, thanks for your time, advice, and responses.