Pratice makes perfect


#1

I need help... i don't understand why it's wrong?

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


#2

It may be that the SCT is expecting only three lines:

I'm looping
I'm looping
I'm looping

Check the instructions for the exact phrase to use and don't miss a character.


#3

Hey @v_hoa98! Your problem is that you forgot to add your exlamation mark at the end.

So change this:

To this:
console.log("I'm looping! " + count);


#4

thanks for contributing! amanuel2