While loops


#1


I'd like to do a console.log message 10 times with while loop. I tried it with function but it didn't work.



#3

I'm not quite sure what you mean. Do you mean to achieve something like this?

count = 1;

while(count <= 10)
{
    console.log("Loop: " + count);
    count++
}

#4

Yea, thanks. I thought it is much more difficult, but I'm the one who is difficult.


#5

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