I dont know whats wrong... practice makes perfect


#1


i don't know whats wrong. it says 'Are you logging 'I'm looping!' to the console three times?'
anyone help me??


//Remember to set your condition outside the loop!

var count = 0;
var loop = function(){
	while(count > 3){
		//Your code goes here!
		console.log("I'm looping!");
		count++;
	}
};

loop();


#2

count is zero, hence not greater than 3, therefore the loop never runs. Try < 3.


#3

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