Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Js split method

// Split a string into an array of substrings:
var String = "Hello World";
var Array = String.split(" ");
console.log(Array);
//Console:
//["Hello", "World"]

///*The split() method is used to split a string into an array of substrings, and returns the new array.*/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Js #split #method
ADD COMMENT
Topic
Name
3+6 =