Skip to content

String ​

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

Static Methods ​

fromCharCode(code) → String ​

Create a string from a char code

Returns: String - A string of length N consisting of the N specified UTF-16 code units.

Parameters:

ParameterTypeDescription
codeintThe character code

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 UTF-8 character code at the given location

Parameters:

ParameterTypeDescription
indexintThe location from zero to length of string-1

Workload Automation and Orchestration