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)