/

HTML / CSS / JavaScript Tutorial

JavaScript String method: charAt()

[this page | pdf | back links]

The charAt() method (when applied to a JavaScript string) returns the character at specified index position (note: strings in JavaScript are zero index based, so the first character is at position zero).

 

It has the following syntax with the following parameters:

 

string.charAt(indexvalue)

 

Parameter

Required / Optional

Description

indexvalue

Required

Integer indicating index (position) of character to return

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript String Variables


Desktop view | Switch to Mobile