split sentence in words javascript and use 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