While loops Intro


#1



It works but I just don't understand how.


//Remember to set your condition outside the loop!
var count = function(){
var count = 0;
while(count < 3){
    console.log("I'm looping!");
    count++;
    }
};
count();


#2

What part of it vexes you?


#3

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