dsa | sp javascript string | Question 7

Last Updated :
Discuss
Comments

Which method is used to split a string into an array of substrings based on a specified separator?

a. slice()

b. split()

c. divide()

d. break()

Share your thoughts in the comments