various ways to split words in javascript 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