Computer Science, asked by Anonymous, 1 year ago

What is the function of indexOf()??

Answers

Answered by ImRitz
1
The indexOf() method returns the position of the first occurrence of a specified value in a string. This method returns -1 if the value to search for never occurs.
Answered by Dhruv00
1
bear with this handwriting,hope u like this
Attachments:

Anonymous: thnx
Anonymous: nice handwriting
Dhruv00: do mark as brainliest
Similar questions