Revision 11


#1
var condition = i;
for (var = i; i < 10; i += 2) {
    console.log(i);
}

var condition = true;
while (condition){ 
    console.log("Hello !");
    condition = false;
};
condition();


condition = false; 
do {
    console.log("Merci de t'afficher");
} 
while(condition);

message d'erreur "Oups, merci de réessayer. There was a problem with your syntax."
pourquoi ? Why ?


#2

Hi,

In your for loop you wrote var = i; instead of var i;

Also there is a line that just says condition(); but condition is not a function.

Correction: @benjnev pointed out a mistake in my code.
There is also an error in line one: i is not defined.


#3

also needs to be

var i = 0

#4

thank's ! it's ok now