HomeGeneralHow to split a string in JavaScript ?

How to split a string in JavaScript ?

In JavaScript , the web developers can use the string.split() method to split a string into an array of sub strings.

How to split a string in JavaScript ?

Below is a sample code snippet demonstrating how to split a string in Javascript.

<script>
  var input = "Ginktage.com is a technology Blog";
  var output = input.split(" ");
</script>

Leave a Reply

You May Also Like

In today’s economy, layoffs have become a common occurrence. Companies may lay off employees for a variety of reasons, including...
Facebook is one of the most popular social media platforms in the world, with millions of users connecting with friends...
Temperature is a critical physical quantity that helps us determine the amount of heat present in a substance or environment....