dsa | sp javascript string | Question 11

Last Updated :
Discuss
Comments

Which method is used to extract a substring from a string based on its position and length?

a. substring()

b. slice()

c. splice()

d. substr()

Share your thoughts in the comments