JavaScript Array Methods

Array.prototype.filter()

Filter() will return an array of fruits from the original that is equal to “peach”

Array.prototype.filter()

find() will return the first element of the array

Array.prototype.findIndex()

findIndex() returned the first index of the element that met the condition which is index of 3

Array.prototype.forEach()

Array.prototype.includes()

includes() returned true because “b” is included in the letters array

Array.prototype.map()

map() will return a new array of new elements ran by initial function