title: Javascript: Compare three booleans and return all true booleans
body: <p>I have a method getPreferredfood(). It gets three boolean values that represent different food items. Which ever of them are true, you return those. </p>
  
  <pre><code>getPreferredFood: function (){
   var item 1; 
   var item2 ;
   var item3;
  
   //comparison?
  
   return "Preferred food is " (whichever item was true)
   }
  </code></pre>
  
  <p>I'm not sure how to return the the item that are true.</p>