JavaScript Professional — Easy
Key points
- `indexOf()` uses strict equality for value comparison
- `findIndex()` allows for more complex search conditions
- `indexOf()` returns the index of the first occurrence
- `findIndex()` returns the index of the first element that satisfies the condition
Ready to go further?
Related questions
