String charAt() method

Find out all the information about the JavaScript charAt() method of the string

Returns the character at the indexi


'Flavio'.charAt(0) //'F'
'Flavio'.charAt(1) //'l'
'Flavio'.charAt(2) //'a'

If the index you provide does not match the string, you will get an empty string.

JavaScript does not have a “char” type, so a char is a string of length 1.

Download mine for freeJavaScript beginner's manual

More js tutorials: