While Loops in JS


#1

var count = 0

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

loop();

This code produces "I'm looping" three times on the console and that is what it is asking for but it wont allow me to move on. It says "Oops, try again. It looks like you're not printing the right string to the console."
Please help. I thought I had it but apparently not. THX


#2

Hey @likeaebows! You just need to add a exlamation mark after Im looping so like this:

 console.log("I'm looping!");

#3

Are you kidding me!?!? That actually was the problem. UGH! thx @amanuel2