While loops


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


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);


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


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