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

Your email address will not be published. Required fields are marked *

You May Also Like

No, the forward navigation is currently not supported in Windows Phone 8. Q&A #42 – Is Forward Navigation supported in...
A few months back i had posted a Q&A on the Topic " What it takes to be a Good...
If you are a regular readers of the technical books , Apress is one of the publishers which comes in...