What's wrong?


#1


\



The instruction says me to log "I'm looping!" three times, but not with three console.log calls.
Even though I call the console.log 1 time, I get this error:
"Oops, try again. Are you logging 'I'm looping!' to the console three times?"


var oi = '';
var x = 0;

var loop = function(count){
	while(x < count){
	 oi = oi + "I'm looping!\n";
	 x++;
	}
};

loop(3);
console.log(oi);


#2

Have you looked at the hint for this lesson? It is very good in particular for this lesson. It really almost gives you the basic outline you need to solve this. If you need further clarification on the hint just let me know!


#3

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