split method

How to split a string into an array of substrings?

JavaScript has many string methods. Today we will explore split() method. As the name suggests it splits a string. A string is a sequence of characters in a programming language. Eg: “Abaython”, “JavaScript”. We can create a string using const info = “Hello Abaython!” const info = new String(“Hello Abaython!”); split() method: String method used …

How to split a string into an array of substrings? Read More »