5/13


#1

help i need help dont know where to start


#2

for (var i = 5; i < 51; i+=5) {
	console.log(i);
}

#3

If you need help with what the for loop syntax means, here it is-

for( initialize a variable or use a variable with a value ; condition to be satisfied ; increment the variable)
{
}

The control flow will be like this
The compiler takes the variable value, then checks if it satisfies the given condition and executes the loop only if it does. Once it completes the loop, the control flow goes to the increment part. After the increment, the compiler checks the condition again and does accordingly.


#4

thank you captain that helped me alot


#5

Thanks a lot that helped me, you rock.


#6

for (var i = 10; i >= 0; i-=1) {
console.log(i);
}


#7

hi please i have the same probleme but when i wrote my code it won't work. it just stop and won't continue .. what's wrong?? this is my code and it's correct as you see..
for (var i = 5; i <51 ; i++) {
console.log(i);
}
please tell me what to do and thanks