Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript split a string

const string  = "this is the array that we want to split";
var splittedString = string.split(" ") //place the separator as a parameter
/*	splittedString:
*	['this', 'is', 'the', 'array', 'that', 'we', 'want', 'to', 'split']
*/
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #javascript #split #string
ADD COMMENT
Topic
Name
5+3 =