Stand in line exercise, not sure what I am missing here?

Stand in line exercise, not sure what I am missing here?
0

#1
function nextInLine(arr, item) {
  // Your code here
  
  return arr.shift(), arr.push(item);// Change this line
}

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

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));

This is what I have but I am still missing a return of 2 and not sure how to print or why it isnt printing out


#2

had to do something completely different and step away but I figured it out xD


#3

I cleaned up your code.
You need to use triple backticks to post code to the forum.
See this post for details.