A problem - maybe a bug? - with "Basic JavaScript: Iterate with JavaScript For Loops" task

Tell us what’s happening:

Help, I don’t known what’s wrong with my code. The task was the following: "Use a for loop to work to push the values 1 through 5 onto myArray ", but it keeps saying that i should be using a for loop to complete the task, even thought I am already using one.

Your code so far

// Setup
var myArray = [];

// Only change code below this line
for(var i = 1; i < 6; i++) {

Your browser information:

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

Challenge: Iterate with JavaScript For Loops

Link to the challenge:

It’s an active bug. Will be fixed soon.

Kindly skip this exercise.

1 Like