What is the problem?


#1


//Remember to set your condition outside the loop!

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


#2

HI you didn't create a function loop()

var loop = function() {
   #here put the while loop
}

#3

I have no idea for function.
Can you help me?


#4

you just need to...

var loop = function() {

   #here put the while loop

}

#call function loop
loop();

#5

WHAT FUNCTION?

//Remember to set your condition outside the loop!

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

loop(???);


#6

it's a function wihout argument just put it like that

#just add the variable loop here
var loop = 0;

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

loop();

#7

its doesnt works:

Oops, try again. Are you logging 'I'm looping!' to the console three times?


#8

try to change the variable loop with another one for example count then you shoudl print

"I'm looping!"

with the ! at the end
so your code should be like that

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

loop();