SyntaxFix
Write A Post
Hire A Developer
Questions
You can access single characters with str.charAt(index) or str[index]. But the latter way is not part of ECMAScript so you better go with the former one.
str.charAt(index)
str[index]