Question: . Write a JavaScript function to split a string and convert it to an array of words. alert(string_to_array( Monday is blue); Output: Monday, is, Blue

. Write a JavaScript function to split a string and convert it to an array of words. alert(string_to_array(" Monday is blue"); Output: "Monday", "is", "Blue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
