Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

A JSString represents a primitive JavaScript string in the JSAPI.

Conceptually, a JavaScript string is just an array of char16_t characters and a length. You should not rely on the structure of JSString, because it is subject to change; instead, treat JSString objects as opaque.

To get the length of a JSString you can use JS_GetStringLength.

Working with JSString objects

(add a list of links to methods here, maybe some text)

Document Tags and Contributors

 Contributors to this page: arai, cpeterson, fscholz, Sheppy, evilpie, cdleary, kunpeng, Jorend
 Last updated by: arai,