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>

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply