Practice makes Perfect!


#1

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

Not printing the right string to the console.


var count=0;

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

loop();


#2

Replace I am looping with I'm Looping!


#3


still not working


#4

You need the exlamation point. I'm Looping! <----


#5

Still its not working


#6

Try a lowercase l in the "I'm looping!" text string. The instructions also mention not using console.log.


#7

You should put console.log before your count++. So it will print your string, count++ and loop as many times as you asked

something like

console.log();
count++

#8

Thanks! this worked!!


#9

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