title: Remove hyphen from variable
body: <p>I am trying to remove the hyphen from a variable if it is a negative number, but when using the replace function I get 'undefined is not a function'.</p>
  
  <pre><code>var extraDivs = checkNumDivs.length - 20;
  
  if (extraDivs &lt;= -1) {
      extraDivsNoDash = extraDivs.replace("-", "");
      $('.title a').html('Add ' + extraDivsNoDash);
  } else {
      $('.title a').html('Remove ' + extraDivs);
  }
  </code></pre>