5/11 Help


#1

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

loop();

This is my code the system says the syntax is wrong! please help!


#2

Hey @jholt54,

I want to ask you something.... did you repeat this by mistake, or is the code actually like this?

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

loop();


#3

Oh wow that's why it was wrong thanks for the help!