title: How can I parse a string with a comma thousand separator to a number?
body: <p>I have <code>2,299.00</code> as a string and I am trying to parse it to a number. I tried using <code>parseFloat</code>, which results in 2. I guess the comma is the problem, but how would I solve this issue the right way? Just remove the comma?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var x = parseFloat("2,299.00")
  console.log(x);</code></pre>
  </div>
  </div>
  </p>