Not sure i understand completely


#1


For or While


Syntax error


// Write your loop below!
var luckyNum = function (number) {
while (number) {
    console.log("Right!");
    number = false;
    if (var i = 0; i <= luckyNum; i++1) {
        console.log(true);
    }
    else { 
        console.log(false);
    }
};
luckyNum(17);


#2

There is the syntax error. It should just read, i++.


#3

still a syntax error :confused:


#4

Check your if statement. It looks like a for loop.


#5

thank you! I fixed it.


#6

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