Possible ways to iterate a string in JavaScript
First, we need to understand the basic ways to get the char at a particular index in the string. There are two ways basically.
str.chatAt(index)
charAt() method returns a new string, at particular given index.
Supported in Old browsers (IE7 too)
If...
pankajtanwar.hashnode.dev1 min read