dsa | sp javascript string | Question 12

Last Updated :
Discuss
Comments

Which method is used to check if a string starts with a specific substring?

a. startsWith()

b. beginsWith()

c. start()

d. initiate()

Share your thoughts in the comments