Skip to content

String ​

Represents a string in JavaScript -- A set of characters.

Static Methods ​

fromCharCode(code, ...) → String ​

Create a string from one or more character codes. For example, String.fromCharCode(65, 66, 67) returns "ABC". Only character codes 0 through 127 (ASCII) are supported.

Returns: String - A string containing one character for each code passed.

Parameters:

ParameterTypeDescription
codeintOne or more character codes

Instance Methods ​

charAt(index) ​

Returns the character at the given location.

Parameters:

ParameterTypeDescription
indexintThe location from zero to length of string-1

charCodeAt(index) ​

Returns a number representing the Unicode code point of the character at the given location. For example, the code for "A" is 65.

Parameters:

ParameterTypeDescription
indexintThe location from zero to length of string-1

Workload Automation and Orchestration