IR Framework

String.right Method

Returns a specified number of characters from the right side of a string.
object.right (length)

Arguments

object
Required. Always the name of a String object.


length
Required. Numeric expression indicating how many characters to return. If 0, a zero-length string is returned. If greater than or equal to the number of characters in string, the entire string is returned.



Return Value

The String.right method returns a copy of the string with any leading spaces removed.

Remarks

The following example illustrates the use of the String.right method.

Alert("Hello, world!".right(6));


Requirements