Last practice for loop


#1

Can someone help with my syntax?? I think its only slightly wrong ??

for ( i = 100; < 0 ; i -= 5;) {
console.log("Do something!");
}


#2

What is less than zero?


#3

lol changed to
for ( var i = 100; i > 0 ; i -= 5;) {
console.log("Do something!");
}


#4

Does it work or is there an error?


#6

changed it, realized my stupid mistake


#8

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