1//The findIndex() method returns the index of the first element
2//in the array that satisfies the provided testing function.
3//Otherwise, it returns -1, indicating that no element passed the test.
4const array1 = [5, 12, 8, 130, 44];
5
6const isLargeNumber = (element) => element > 13;
7
8console.log(array1.findIndex(isLargeNumber));
9// expected output: 3
10