Tell us what’s happening:
Your code so far
function nextInLine(arr, item) {
// Your code here
arr.push(item);
var removed=arr.shift();
return removed;
}
var removedArr=removed;
console.log(removedArr);
// Test Setup
nextInLine([1,2,3,4,5], 12);
// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));
Not sure what to do here at all and I’m totally stumped
ALSO:
FreeCodeCamp won’t let me post the code to the lesson since I’m new here (which is ridiculous), but it is called Stand In Line in the Javascript certification under the Introduction to Javascript section.