String methods in Javascript
Strings in Javascript consist of many methods and these methods help you to work with strings.
String length method
The string length property fetches us the length of the string.
const str = "Hello World";
console.log(str.length);
String indexOf() m...
varun19.hashnode.dev4 min read