title: How to create a switch comparator in JS?
body: <p>is there a way to create a switch comparator like this one?</p>
  
  <pre><code>switch (item) {
      case (item&lt;= 10):
          money += 25;
          $('#money').html(money);
          break;
      case (item &gt; 10 &amp;&amp; item &lt;= 20):
          money += 50;
          $('#money').html(money);
          break;
  }
  </code></pre>