title: Adapt Pascal function AnsiChar() and AnsiString() in JavaScript?
body: <p>i need to adapt a pascal script into JavaScript.
  I was able to translate nearly all the code except this two functions.</p>
  <p>Pascal codelines:</p>
  <pre><code>Result:= AnsiChar(b + ord('0'));
  
  s:= AnsiString(copy(ReNr, 1, length(ReNr) - 1));`
  </code></pre>
  <p>The code in the AnsiChar()-function i already adapt with <code>'0'.codePointAt(0) % 10</code>, and the code in the AnsiString() with <code>ReNr.substr(1, ReNr.length - 1)</code>. But i don't understand what the Pascal Ansi-functions does.</p>
  <p><strong>Is there a JavaScript pendant to Pascals <code>AnsiChar()</code> and <code>AnsiString()</code> functions or what i have to do, to get the same effect in JavaScript?</strong></p>