Which method is used to check if a string ends with a specific substring?
a. endsWith()
b. finishWith()
c. end()
d. terminate()
This question is part of this quiz :