Class JSString

    • Field Detail

      • length

        protected JSNumber length
        property length
        Since:
        Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
        See Also:
        String
      • prototype

        public JSString prototype
        property prototype
        Since:
        Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
        See Also:
        String
      • constructor

        protected JSFunction constructor
        property constructor
        Since:
        Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
        See Also:
        Function
    • Constructor Detail

      • JSString

        public JSString​(JSString s)
        Object String(s)
        Parameters:
        s - The value to be stored in a String or converted to a primitive type
        Since:
        Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
    • Method Detail

      • fromCharCode

        public static JSString fromCharCode​(JSNumber charCode)
        function fromCharCode(charCode1, ...) create a string from character encodings.

        Example

         var s = String.fromCharCode(104,101,108,108,111); //returns the string hello
         
        Parameters:
        charCode - Zero or more integers that specify Unicode encodings of the characters in the string to be created.
        Since:
        Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
        See Also:
        String