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'] */