Getting harder, but challenging

I got the first two checks. Saw the video and the example is way different(set up) than what I have. Last three challenges have been difficult for me. I know it’s easy for many of you.

  **Your code so far**
function nextInLine([], item) {
// Only change code below this line

return item;
// Only change code above this line

// Setup
const 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 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/213.0.449417121 Mobile/15E148 Safari/604.1

Challenge: Stand in Line

Link to the challenge:

What exactly is unclear in the challenge?

Trying to get feed back on what I have done so far.

This; assuming the first step was done correctly.

Next steps.

Add the number to the end of the array, then remove the first element of the array.

The nextInLine function should then return the element that was removed.

You should not replace the function argument arr with an empty array.