I have a hard time to see how to resolve that problem


#1


https://www.codecademy.com/courses/javascript-beginner-en-ASGIv/1/1?curriculum_id=506324b3a7dffd00020bf661


Oops, try again. Are you logging 'I'm looping!' to the console three times?


var count = true;
for(count = 0;count < 3;count++)

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

loop();


#2

All you really need is

var count = 0;

and your function.

So, while your count (currently 0) is less than 3, log "I'm looping!".

Since you're currently at 0, you will want to increment by 1 until you reach 3, right?

Underneath your console.log, you're missing this increment by 1. The solution is somewhere in your code by the way.


#3

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