3 messages problem!


#1


I am having trouble with lesson 5 practice makes perfect. Can anyone please help me?

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

The error message says "Oops, try again. It looks like you're not printing the right string to the console."


 //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 );
		count++;
	}
};

loop();


In the result box next to the code it comes up with this:
I'm looping 0
I'm looping 1
I'm looping 2


#2

instruction:

Write a while loop that logs "I'm looping!"

so you have to print just I'm looping! but you are printing something extra


#3

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