Please help me!


#1

// Write your very own for loop!
for(var i = 100; i = 0;i=5) {
console.log(i);
}
Oops, try again. Your loop didn't log 100 to the console!


#2

you loop doesn't increase


#3

Some mistakes in your for statement:

This for (var i = 100; i = 0;i=5) should have the format:

for (initialise counting variable - var i = number ; set test condition i <, >, >=, <=, != ; increment or decrement counting variable, i++ i--, i+= number, i-= number)

This is a increment by 5 for loop up to and including 100
for(var i = 0; i <= 100; i+=5) {
console.log(i);
}

This is a decrement by 5 for loop down to zero from 100
for(var i = 100; i >= 0; i-=5) {
console.log(i);
}

Good luck, for loops really important, and really useful.