Loops 8


#1

what is wrong with my code

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


#2

in your for loop the variable named i and give it to value 100

now the condition i <=0 . it means 100<=0

is it right? should this loop run?


#3

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