js split by words code example
Example: javascript split sentence into words
// split sentence into words
sentence.split(' '); // split the string on the spaces
// split sentence into words
sentence.split(' '); // split the string on the spaces