slice(start, end)

Extract a certain portion of the string.

Parameter

Start Index of the first character of the desired

substring.

End Index of the character after the last

character of the desired substring.

Example

"a new string".slice(2, 5)  // returns 'new'

<< split(separator, limit) © 1996-2013 InetSoft Technology Corporation (v11.5) JS.3 Number Object Functions >>