08. When to While and When to For Need Help!


This is my code:
for (var i = 0; i < 5; i++){

var myCondition = function(){

 console.log("This finally worked!");
 myCondition = false;

The syntax is correct but it is just printing off the numbers 0, 1, 2, 3, 4, 5 and it is not printing off This finally working can someone tell me why!!


You need to call myCondition function in order to print off that string.


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