Basic JavaScript - Iterate with JavaScript While Loops

Tell us what’s happening:
Describe your issue in detail here.
Please I need help logging the numbers to appear in descending order from 5 through 0.

Your code so far

// Setup
const 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Iterate with JavaScript While Loops

Link to the challenge:

In this case you have to “invert” the logic, right now you are starting at 0 and increasing i in each loop, try starting at 5 and decreasing it instead.