Which built-in method returns the index within the calling String object of the first occurrence of the specified value?

1 Answer(s)

indexOf() method returns the index within the calling String object of the first occurrence of the specified value, or −1 if not found.

Supporter Answered on August 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.