7. Practice Counting Down Error


#1

that´s my code:

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

It says me "Oops, try again. It looks like your loop didn't log 9 to the console."

What I´m doing wrong?


#2

you wrote i < 0 should rather be i > 0


#3

Hey,it must be i > -1


#4

this is how i solved it

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


#5

for(var i=1;i<11;i++)
console.log(i)

try this it would work