fCC Seek and Destroy Challenge

If there are not instructions saying to only change code in a specific place. For example…

// only change code below this line

or…

// only change code above this line

Or stated in the description…

Then I should also be able to change line one if I want - right?

Line One:

function destroyer(arr)

The code below is the default challenge code (without any alterations)…


function destroyer(arr) {
return arr;
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3);
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0

Challenge: Seek and Destroy

Link to the challenge:

Correct.

In this challenge, they give the skeleton of a function and a test case of the function, but really, you could rewrite the function as an arrow function (for example) and delete the test case. All you need for this is a function called “destroyer” that fulfills the requirements and passes the automatic tests.

1 Like

Perfect! Thank you.