Programmer's Wiki
Advertisement

right() is a VBScript function that returns the amount of characters specified in the second argument from the right of the string in the first argument.

JavaScript[]

The same can be done in JavaScript with this function:

function right(str, len) {
	return str.substr(str.length-len);
}

See also[]

Advertisement