Text: JavaScript
A) Write a function named getWords that accepts a sentence of words separated by one space and returns an array of the words in the sentence. Review the String split method in our textbook and our class notes to see how this problem can be solved with a single line of code. Use arrow function syntax.
Use the following to test your function.
console.log(getWords('alpha bravo delta'));
// expect ['alpha', 'bravo', 'delta']