For loops down from 100


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/javascript-beginner-en-NhsaT/1/3?curriculum_id=506324b3a7dffd00020bf661#

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
it shows an error

```

for (var i = 100; i < 1; i-=5){
return(i);
}

<do not remove the three backticks above>

#2

return only makes sense in the function.use console.log() instead of return.

now consider the for loop

for (var i = 100; i < 1; i-=5)

what did you expect from i < 1 ?

have a look at the previous lessons then come back here :slight_smile:


#3

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