Plz help asap!


#1

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

plz find the bug..
it says my loop didnt log 100 into the console...


#2

@akanshyadash,
Try it with

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

   1   .....  <=====  .... 100

#3

thank a lot!! @leonhard.wettengmx.n