Morning - it began to act-up when changing the lesser or greater than symbols and the page would crash. It began to be a problem so tried the solution code below and still would not allow for a pass.
var i = 0;
while (i <= 4) {
myArray.push(i);
i++;
}
Oh, yes that is the problem, your Logic is not the correct.
This is the challenge…
Add the numbers 5 through 0 (inclusive) in descending order
So, the result expected: myArray should equal [5,4,3,2,1,0] .
Have you notice your error?
That was the solution provided in the “hint” link see screen grab. The page keeps crashing when I make edits so not trying to figuring it out any longer just wanting to move on.
Thank you. if it helps - when I made changes to the code the page would crash and I would need to reload the page and try to get to the “reset code” button before the auto-check had time to run. If I didn’t “reset the code” button in time, the page would simply crash again even though I had made no changes to the code. If I did get to the button in time, the code was reset to a fresh page - no crashing - then I was free to type the code again however the cycle would start again.