title: How can I subtract one variable from another?
body: <p>I have this piece of jquery code: </p>
  
  <pre><code>jQuery(document).ready(function($) {
      var totaalBreedte = $("#menuus").width();
      var menuBreedte = $("#eersteMenu").width();
      var over = totaalBreedte - menuBreedte;
  
      alert(over);  
  });
  </code></pre>
  
  <p>For example, when totaalBreedte = 800 and menuBreedte = 400. I can sum the two values, which alerts 1200, but when i substract them like above I recieve 0. I tried to cast them as a number and tried parseInt() but this doesn't make any difference. Someone who knows what i'm missing here?</p>