dsa | sp javascript string | Question 14

Last Updated :
Discuss
Comments

Which method is used to convert a string to an array of words based on space as a separator?

a. split()

b. toArray()

c. words()

d. split(' ')

Share your thoughts in the comments