Home>indexOf() JavaScript Array Method>Edit It: Find the index of '5'Edit It: Find the index of '5'This code shows how to find the index of '5'.See it on StackBlitz