title: How do I Subtract two numbers without using minus operator in JavaScript? Or Using For loop
body: <p>Javascript are not using Bitwise Operator ?? Here is my code javascript Code  </p>
  
  <pre><code>function subtract()
  {
      var n1 = parseInt(document.getElementById('fvalue').value);
      var n2 = parseInt(document.getElementById('svalue').value);
      var x1, x2;
  
      while(n2 != 0)
      {
          var brw = (~n2)&amp;n2;
          n1= n1^n2;
          n2 = brw&lt;&lt;1;
      }
  
      document.write("Result is : " + n1);
  }
  </code></pre>