Found An Element in an Array

In Found an Element in an Array, wouldn’t it be worth explaining that .indexOf() is only going to return the first instance of the letter in the string, since the example has two instances of the letter it is searching for.

Hey there, it does mention that .indexOf() returns the index of the first element that matches the argument, however I agree that this could be more prominent. Thanks for flagging!

Ben