24.162. String.charAt( ): get the nth character from a stringECMAScript v124.162.1. Synopsisstring.charAt(n) 24.162.1.1. Arguments
24.162.1.2. ReturnsThe nth character of string. 24.162.2. DescriptionString.charAt( ) returns the nth character of the string string. The first character of the string is numbered 0. If n is not between 0 and string.length-1, this method returns an empty string. Note that JavaScript does not have a character data type that is distinct from the string type, so the returned character is a string of length 1. 24.162.3. See AlsoString.charCodeAt( ), String.indexOf( ), String.lastIndexOf( ) |