EX 10 : i don't understand what are my mistake


#1


https://www.codecademy.com/fr/courses/javascript-beginner-fr-FR-7kz5w/2/3?curriculum_id=5355c2b7516bcbd912000008#

SyntaxError: Unexpected token }


var goAlHelico = function(){
  // Ecrivez votre boucle do/while ici !
    do {
        while(goAlHelico === false){
            console.log("Je stop car la condition est fausse");
            goAlHelico = true;
        }   
    }
};

goAlHelico();


#2

do {

// La chose à faire au moins une fois !

} while( /* une condition */ );

so here

var goAlHelico = function(){
// Ecrivez votre boucle do/while ici !
do {
console.log("Je stop car la condition est fausse");
goAlHelico = true;
}
while(goAlHelico === false)
};

goAlHelico();


#3

so i must to write while out of the do{} right? that's my mistake?


#4

yes!!! you are right :slight_smile:


#5

oooh ok, thank you so much for your help !

Have a nice day !