String Object

Top  Previous  Next

Manipulates a stored piece of text.

Description

In CellScript, String object allows you manipulate a string.

Properties

String.length

Returns the length of a string.

 

Static Methods

String.fromCharCode

Convert a Unicode number into a character:

String.charAt

Returns the specified character of a string.

String.charCodeAt

Return the  Unicode of the character at the specified index in a string.

String.indexOf

Returns the position of the first occurrence of a specified value in a string.

String.slice

Returns the selected elements in an array, as a new array object.

String.toLowerCase

Converts a string to lowercase letters.

String.toUpperCase

Converts a string to uppercase letters.