title: Is there or isn't there an integer type in JavaScript?
body: <p>I am just starting to learn Javascript and I immediately got confused by seemingly contradictory statements in Mozilla's <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript" rel="noreferrer">A re-introduction to JavaScript (JS tutorial)</a>.</p>
  
  <p>One one hand:</p>
  
  <blockquote>
    <p>"<strong>There's no such thing as an integer</strong> in JavaScript, so you have to
    be a little careful with your arithmetic if you're used to math in C
    or Java."</p>
  </blockquote>
  
  <p>On the other hand (immediately after that paragraph):</p>
  
  <blockquote>
    <p>"In practice, integer values are treated as 32-bit ints (and are
    stored that way in some browser implementations), which can be
    important for bit-wise operations."</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>"You can convert a string to an integer using the built-in parseInt()
    function."</p>
  </blockquote>
  
  <p>So, is there such thing as integer in JavaScript or isn't there?</p>