Tell us what’s happening:
Hi!
I’m trying to run the test for my code, but the page keeps freezing every time I hit “Run the tests” button.
I’ve already refreshed page many times, cleared my cache, and tried to go to the next task, but the next task has the same issue.
I tried to check previous tasks, they worked. Issues start only with “loop” tasks.
Would anyone please help me with that?
Your code so far
// Example
var ourArray = [];
for (var i = 0; i < 5; i++) {
ourArray.push(i);
}
// Setup
var myArray = [];
for (var a = 0; a > 0 || a < 6; a++){
myArray.push(a);
}
// Only change code below this line.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-for-loops