title: Can a JavaScript ternary operator support 3 conditions?
body: <p>Given the following JavaScript ternary operator, is it possible to enable this to support 3 conditions versus the current two?</p>
  
  <pre><code>const color = d.y &gt;= 70 ? "green" : "red";
  </code></pre>
  
  <p>I would essentially like the following logic:</p>
  
  <pre><code>&gt;= 70, color = green;
  between 69-50, color = yellow;
  &lt; 50, color = red;
  </code></pre>
  
  <p>Is this possible with a 1 line ternary or do I need a IF statement?</p>