title: javascript parseInt to remove spaces from a string
body: <p>I have an example of data that has spaces between the numbers, however I want to return the whole number without the spaces:</p>
  
  <pre><code>mynumber = parseInt("120 000", 10);
  console.log(mynumber); // 120
  </code></pre>
  
  <p>i want it to return <code>120000</code>. Could somebody help me with this?
  thanks</p>
  
  <h2>update</h2>
  
  <p>the problem is I have declared my variable like this in the beginning of the code:</p>
  
  <pre><code>var mynumber = Number.MIN_SAFE_INTEGER;
  </code></pre>
  
  <p>apparently this is causing a problem with your solutions provided.</p>