title: Javascript Case Error
body: <p>I've got a question over here..</p>
  
  <p>I got a really simple BMI calculator, its not even a calculator but the think about the idea behind it.. I just made a Case but it didn't work. (I know the value's to be healthy or obesitas are wrong, just doing it for the idea!)</p>
  
  <p>Here You can see the code where I got the problem(Line 19 at the case with &lt;=)</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Test BMI&lt;/title&gt;
      &lt;style&gt;
          label{
          display:block;
          }
      &lt;/style&gt;
      &lt;script&gt;
          function calc(){
  
              var lengte = document.getElementById("length").value;
              var gewicht = document.getElementById("gewicht").value;
              var bmi = gewicht / (lengte * lengte);
              var getal = parseInt(bmi);
              document.getElementById('uitkomst').innerHTML += "";
              switch (getal){
  
              case &lt;= 17:
              document.getElementById('uitkomst').innerHTML = "U are far to light " + gewicht + "kilo!";
              break;
  
              case &lt;= 23 :
  
              document.getElementById('uitkomst').innerHTML = "U are in good shape" + gewicht + "kilo!"; 
              break;
  
              default:
              document.getElementById('uitkomst').innerHTML = "just a test";
  
  
  
  
              }
              document.getElementById('advies').innerHTML = bmi.toFixed(1);
          }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="wrapper" style="margin-left:50px;"&gt;
          &lt;h1&gt;BMI Berekenen&lt;/h1&gt;
          &lt;label&gt;Lengte CM&lt;/label&gt;
              &lt;input type="text" id="length"&gt;&lt;br/&gt;
  
          &lt;label&gt;Gewicht KG&lt;/label&gt;
              &lt;input type="text" id="gewicht"&gt;
          &lt;button id="bereken" onclick="calc()"&gt;Bereken je BMI&lt;/button&gt;
          &lt;div id="uitkomst"&gt;
          &lt;/div&gt;
          &lt;div id="advies"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Can anybody help me out with this little problem I got in my code:)</p>
  
  <p>Thanks in Advance!</p>