JSString

  • Revision slug: SpiderMonkey/JSAPI_Reference/JSString
  • Revision title: JSString
  • Revision id: 69111
  • Created:
  • Creator: evilpie
  • Is current revision? No
  • Comment 12 words removed

Revision Content

A JSString represents a primitive JavaScript string in the JSAPI.  Conceptually, a JS string is just an array of jschars and a length. You should not relay on the structure of JSString, because they are subject to changes and should only be treated as immutable.

Revision Source

<p>A <strong><code>JSString</code></strong> represents a primitive JavaScript string in the JSAPI.  Conceptually, a JS string is just an array of <a href="/en/SpiderMonkey/JSAPI_Reference/jschar" title="jschar">jschar</a>s and a length. You should not relay on the structure of JSString, because they are subject to changes and should only be treated as immutable.</p>
Revert to this revision