title: ternary operators with multiple statements
body: <p>/*
   * Use a series of ternary operator to set the category to one of the following:
   *   - "herbivore" if an animal eats plants
   *   - "carnivore" if an animal eats animals
   *   - "omnivore" if an animal eats plants and animals
   *   - undefined if an animal doesn't eat plants or animals
   *
   * Notes
   *   - use the variables <code>eatsPlants</code> and <code>eatsAnimals</code> in your ternary expressions
   *   - <code>if</code> statements aren't allowed ;-)
   */</p>
  
  <p>i used this code but it is not getting things right</p>
  
  <pre><code>  var eatsPlants = true;
  var eatsAnimals = false;
  
  
  var category = eatsPlants ? "herbivore" : "carnivore";
  console.log(category);
  var category = (eatsPlants &amp;&amp; eatsAnimals) ? "omnivore" : "undefined";
  console.log(category);
  </code></pre>
  
  <p>any ideas to solve this problem</p>