Im completely stuck on [https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-while-loops] task, I am using the exact same method shown in the video and on the previous help thread yet I am getting the wrong answer somehow. Please help?
Your code so far
// Setup
var myArray = [];
// Only change code below this line
var i = 0;
while(i < 5) {
myArray.push(i);
i++;
}
console.log(myArray)
Challenge: Iterate with JavaScript While Loops
Link to the challenge: