title: How to replace a decimal in a number with a string?
body: <p>How can I replace a decimal in a number with a string? For example, if I have a number <code>12.12</code>, how can I take the decimal in that number and replace it with a comma (<code>,</code>) so that the output would be <code>12,12</code>?</p>
  
  <p>I tried this, but my app crashes because of it:</p>
  
  <pre><code>let number = 12.12
  
  number.replace(/./g, ',');
  </code></pre>
  
  <p>Thanks. </p>