title: How do I remove $ sign from string using replace?
body: <p>I cannot remove the dollar sign from the balance properties, I am not sure what I am missing? I thought it was string.replace(searchvalue, newvalue)??</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>const data = [{
      index: "14",
      name: "Bob",
      balance: "$100",
    },
    {
      index: "23",
      name: "John",
      balance: "$120",
    },
    {
      index: "17",
      name: "Steve",
      balance: "$80",
    },
  ];
  
  const balances = data.map((amount) =&gt; {
    var newAmount = amount.replace("$", "");
    console.log(newAmount);
  });</code></pre>
  </div>
  </div>
  </p>
  <p>What I want:</p>
  <pre><code>100
  120
  80
  </code></pre>