Working with strings ๐
Accessing individual characters
We can treat the string as an array of characters so we can access individual characters with the help of index values starting from zero.
const str = "Hello";
console.log(str[0]); // returns H
console.log(str[1]); // ...
aashman.hashnode.dev3 min read