how use switch case range JavaScript
<p>I'm trying to using siwtch case JavaScript like this</p>

<pre><code> &lt;p id="demo"&gt;&lt;/p&gt;

  &lt;script&gt;
  var n=new Date();
  var jam=n.getHours();
  switch (jam) {
  case (jam&gt;='17'):
    time = "sleep";
    break;
   case (jam&lt;'17'):
    time = "work";
    break;     
   }
  document.getElementById("demo").innerHTML = "This Time for " + time;
  &lt;/script&gt;
</code></pre>

<p>but this didn't appear anything</p>