1)index of( ) - This return the position of the value that is hold by an array object and store in a variable index.
Finally the document. write print the index position of India on array.
Output of the program
Liked it! Share this Tutorial