Help!


#1



When I run the code the page crashes.


//Remember to make your condition true outside the loop!
var cat = true
var soloLoop = function(){
  //Your code goes here!
  while(cat = true){
      console.log("Looped once!")
      cat = false
  }
};

soloLoop();


#2

Check out your while condition, how should you ask for a comparison? It's a bit different.


#3

Thanks so much that helped a lot.


#4

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