How to split a string in JavaScript
The program uses the split() function to separate all the words