Practice makes perfect (function?)


#1

hey, im just not sure where the function comes in in all this, and it always gives me an infinite loop. Not sure what im doin g wrong

var count = 0

var loop = function(){
	while(count <= 3){
 console.log("I'm looping!")
 count + 1
    }
};

loop();


#2

On line 6 needs to be

count = count + 1

instead of

count + 1.


#3

K thanks ill see if this works


#4

thnx worked

.....................................................................


#5

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