Tell us what’s happening:
Describe your issue in detail here.
For some reason even though i isn’t less than 5 the while loop still executes. Why is this happening i don’t get it at all since as to my knowledge loops stop if the argument is false
**Your code so far**
// Setup
const myArray = [];
let i = 10;
// Only change code below this line
do {
myArray.push(i);
i++;
}
while (i < 5) {
myArray.push(i);
i++;
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0
Challenge: Iterate with JavaScript Do…While Loops
Link to the challenge: