Tell us what’s happening:
It seems I’m following the example exactly, but I’m not getting it right somehow… Am I missing something?
Your code so far
// Example
var ourArray = [];
for (var i = 0; i < 5; i++) {
ourArray.push(i);
}
// Setup
var myArray = [];
// Only change code below this line.
for (var a = 1; a < 5; a++);
myArray.push(a);
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3355.0 Safari/537.36
.
Link to the challenge:
https://www.freecodecamp.org/challenges/iterate-with-javascript-for-loops