title: javascript switch-statement age ranges
body: <p>Stuck on a javascript switch assignment.  I'm still fairly new to this stuff but can't seem to find anything in my course books or online to get this program to work.  The task was to switch if statements to switch code.  Any help or suggestions would be greatly appreciated.</p>
  
  <pre><code>var myAge = prompt("Enter your age:", "30");
  
  switch (myAge) {
  
    case myAge! &gt;= 0:
    case myAge &lt;= 10:
      document.write("myAge is NOT between 0 and 10 &lt;br /&gt;");
  
    case myAge &gt;= 0:
    case myAge &lt;= 10:
      document.write("myAge is between 0 and 10 ");
      break;
  
    case myAge &gt;= 80:
    case mmyAge &lt;= 10:
      document.write("myAge is 80 or above or 10 or below ");
      break;
  
    case myAge &gt;= 30:
    case myAge &lt;= 39:
      document.write("myAge is between 30 and 39 ");
      break;
  
    case myAge &gt;= 80:
    case myAge &lt;= 89:
      document.write("myAge is between 80 and 89 ");
      break;
  }
  </code></pre>