How To Split Given String?
By Goniey N (Mr. G)
Splits Words From The Given String.....
var MyString = "Hello My Name Is Goniey";
var strArr = MyString.split(" ");
//Above Line Splits Words By Space As a Separator.....
//Now It Will Store All Words Which Are Splitted In The strArr Variable...
//You Can Retrieve Words Like :
var FirstWord = strArr[0];
//Using Above Line You Can Retrieve First Word.....
How To Split Given String? (518 Views)