Practice makes perfect. I dont know what's wrong with the code. I'm not able to debug it so please answer ASAP


//Remember to set your condition outside the loop!
var count = 0;

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



The moment your while loop will execute for the first time, count = 0. so your while condition is:

while(0 > 3)

which is false, so the loop won't execute. It should be < so the loop will execute, each time the counter will be increased until it is 3


The debugger is also looking for the exact string, "Looped once!"