WMLScript charAt() function

The charAt() function returns the character at the specified position.

Syntax

n = String.charAt(string, index)
Component Description
n The string returned from the function.
string A string.
index Define a number at a specific index in the string.

example

var a = String.charAt("world",2);
var b = String.charAt("world",0);
var c = String.charAt("world",10);

result

a = "r"
b = "w"
c = ""