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
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.