Tell us what’s happening:
Ive checked the video and uve checked the forum. So what is it im doing wrong here?
Your code so far
// Setup
var myArray = [];
// Only change code below this line.
var i = 0;
while (i < 5) {
myArray.push(i);
i++;
}
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 5.1.1; KFDOWI) AppleWebKit/537.36 (KHTML, like Gecko) Silk/77.3.1 like Chrome/77.0.3865.116 Safari/537.36
.
Challenge: Iterate with JavaScript While Loops
Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-while-loops