Totally Lost on While Loops Variables


Hi, here is what I tried and is not working:

count = 0;

var loop = function(count++){
while(count < 3){




What am I missing? Thanks again...


Hi your function should not have a argument so here

var loop = function(count++)

Remove the count++

And inside your while loop you should add count++ like that

while(count < 3){

And read this on how to format your code


Thanks once again! Worked right away.


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