Basic JavaScript - Iterate with JavaScript For Loops

Tell us what’s happening:

Something is wrong with the lesson, i even added the tutorials solution which was the same with mine

Your code so far

// Setup
const myArray = [];
for (let i = 0; i < 5; i++) {
  myArray.push([0, 1, 2, 3, 4]);
}
// Only change code below this line


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

console.log(myArray);

Your browser information:

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

Challenge Information:

Basic JavaScript - Iterate with JavaScript For Loops

i found it… you had to actually edit above this : // Only change code below this line , something did not automatically got removed from the web app

1 Like

You have changed the code above the comment, that says change the code below this line

2 Likes

oh snap, i dont even remmber adding it above? maybe a bug or i accidentally added it!

It’s not any bug, the tests are specific about the challenge instructions. And you doesn’t followed the instructions. That’s it.

1 Like

got it, thank you :handshake:

1 Like