Number 7


#1



Please help me! it says that ten was not logged into the console.


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


#2

Hi first this part

i < 1

you first post var i = 10 so if you do i < 1 it will never be less than 1 so if you want to count down you should put i > 1
then here

i = i--

you should do ti like that

i--
or
i -= 1
or
i = i - 1

Hope that could help you..


#4

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