Reference error: loop is not defined. Pls help


#1


var jan = true;


for(var i = 0 ; i < 2 ; i++) {
    console.log("Handsome guy!");
}
while(jan) {
    console.log("true");
    jan = false;
}
loop();


#2

this:

loop();

seems like to call a function called loop, but there is no function called loop? Either add a function, or remove the function call


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.