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...
Oct 4, 20214 min read94