How to find 9th Character from a string using JAVASCRIPT?

Sample Code:

var value = '11111111911;
String s = value.charAt(8); //return 9

Note: Index starts at 0.

Cheers!!!

No comments:

Post a Comment