What is the function of indexOf?

indexOf() The indexOf() method, given one argument: a substring to search for, searches the entire calling string, and returns the index of the first occurrence of the specified substring .

Sizin İçin Seçtik  How do I check if a string contains?

Leave a Reply

Your email address will not be published. Required fields are marked *