6 : syntax error ! please help


#1


https://www.codecademy.com/courses/javascript-beginner-en-ASGIv/1/2?curriculum_id=506324b3a7dffd00020bf661

The error shows me this message : Did you log "Looped once!" to the console ?

var myCondition = true;
var soloLoop = function(){
  //Your code goes here!
  while(myCondition) {
   console.log("Looped once!");
   var myCondition = false 
  };
};
soloLoop();


#2

You need to put a parameter. In this case, yours is myCondition.

// rest of your code
var soloLoop = function(myCondition){
//rest of your code
soloLoop(myCondition);

#3

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