oposit of split js code example
Example: 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.*/