title: Ternary operator with return statements JavaScript
body: <p>I need to return true or false if an option in a drop down selected. </p>
  
  <p>This is my code:</p>
  
  <pre><code>var active = sort.attr('selected') ? return true : return false;
  </code></pre>
  
  <p>I get an error that the first <code>return</code> is unexpected.</p>
  
  <p>Why?</p>