title: Not able to understand javascript behaviour
body: <p>I am trying to execute the following code</p>
  
  <pre><code>var n = 100;
  var sum =0;
  while(n&gt;0)
  {
  sum = sum + n%10;
  n = n/10;
  }
  console.log(sum);
  </code></pre>
  
  <p>The result should be 1 but javascript is returning </p>
  
  <blockquote>
    <p>1.1111111111111112</p>
  </blockquote>
  
  <p>Also, when I ran individual statements it is giving perfectly fine result,
  what could be the possible reason?</p>