6. Solo flight


#1



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


This keeps looping. I don't know what the problem is. Am I supposed to use true of false instead of numbers? So while loop only use true or false?


var number=1;
var soloLoop = function(){
  //Your code goes here!
  while(number=1){
      console.log("Looped once!");
      number=4;
      }
};

soloLoop();


#2

You are assigning rather than comparing.


#4

Thanks very much. Now it worked.