6 : syntax error ! please help



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 


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

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


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