+ 1

Guys what is function of charAt()??

23rd Jul 2018, 1:06 AM
Emeruche Ikenna Cole
Emeruche Ikenna Cole - avatar
2 Answers
+ 11
This function returns the character at the specific given index position in an array of characters or in a string that is also an array of characters!!
23rd Jul 2018, 2:19 AM
Prop de Puppy
Prop de Puppy - avatar
+ 10
var str = "Hello"; console.log(str.charAt(1)); // logs the str's 'e' character. 'H' being at 0.
23rd Jul 2018, 2:05 AM
John Wells
John Wells - avatar