Question: 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

 A) Write a function named getWords that accepts a sentence of

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 Example: > getWords ( 'alpha bravo') > ['alpha', 'bravo' ]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!