Basic JavaScript: Stand in Line (Page is Frozen?)

I’m having trouble getting my tests checked on this one. It is as if the page is frozen. I refreshed the page several times. I don’t know, any ideas?

Can you share your code.

Hi AustinMoore1492,

function nextInLine(arr, item) {

// Your code here

function nextInLine([2], 1) {}

)

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));


This is without my code. It should indicate that I missed the question with an X if I click Run The Tests
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/stand-in-line/

Ah I figured it out my wifi was being goofy and now I plugged in a network cable. It works now

1 Like