removedFromMyArray should only contain ["cat", 2]" to the action attribute of the form element

Tell us what’s happening:

   **Your code so far**

function nextInLine(arr, item) {
 // Only change code below this line
 return item;
 // Only change code above this line

// Setup
var testArr = [1,2,3,4,5];

// Display code
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 6));
console.log("After: " + JSON.stringify(testArr));
   **Your browser information:**

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

Challenge: Stand in Line

Link to the challenge:

do you have a question?

please, what’s your question?

can you also edit your title with something that makes sense please?

1 Like