Get help on our basic JavaScript and Algorithms Challenges. If you are posting code that is large use Gist - https://gist.github.com/ paste the link here.
thecodingaviator on master
remove A (#31157) (compare)
:cookie: 495 | @jluboff |http://www.freecodecamp.com/jluboff
:cookie: 890 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
:cookie: 772 | @walidashri |http://www.freecodecamp.com/walidashri
how do i assign lots of different objects to return different things? i'm stuck on Stand in Line
i think that is the problem
code:
function nextInLine(arr, item) {
// Your code here
return 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));