Why is it reporting "You should be using a for loop for this."

Tell us what’s happening:
Hi all! After I tried submitting the answer, I got " You should be using a for loop for this", even though I am. I then tried pasting the answer(same as mine) from the help section, but still, no cigar. Any advice?

Your code so far


// Setup
var myArray = [];

// Only change code below this line

for (var i = 1; i < 6; i++) {
myArray.push(i);
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36.

Challenge: Iterate with JavaScript For Loops

Link to the challenge:

This is an active bug. Will be fixed soon.

Kindly skip this exercise and proceed with the rest of the module.

1 Like

That’s what I thought, thank you! :smile: