logo
logo

Find Index

Beginner

Find Index

Given an array 'a' and an element 'e', find the index of the first occurrence of 'e' in the array using the indexOf() method and log the index to the console.

Console
Submit
Solution
00:00