title: Using the ternary operator instead of if/else?
body: <p>I have recently been learning about the ternary operator, and how it is a good shortcut instead of using if/else operator. </p>
  
  <p>I've been practicing and this is a program that that configures what type of school someone should go to based on their age. </p>
  
  <p>However, when I run the code, it is not working. </p>
  
  <pre><code>var age = 15;
  
  function whichSchool(age) {
    return (age &lt; 13) ? "Elementary School"
         : (age &gt;= 13 &amp;&amp; age &lt;= 18) ? "Secondary School"
         : (age &gt; 18) ? "University"
  }
  
  console.log(whichSchool(15))
  </code></pre>
  
  <p>It says: unexpected token {. </p>
  
  <p>Any help is appreciated. </p>
  
  <p>Thank you. </p>