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()
This question is part of this quiz :