scrimba
Learn Basic JavaScript
Stand in Line
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Stand in Line
Expand for more info
index.js
run
preview
console
function nextInLine(arr, item) {
// Your code here

return item;
}

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

console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 6));
console.log("After: " + JSON.stringify(testArr));
Console
index.html
-2:47