Last practice for loop


#1

Hello, I have a question about why my code crashes the browser.

for (var i = 100; i > 0; i - 5) {
console.log(i);
}

I know the correct way to write it but this was my first try and based on what the lessons taught me this should work.


#2

Try it by replacing your

with

i = i - 5

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.