const findNote = function(array, lookedUp) {
const index = array.findIndex(function(note){
return note.title === lookedUp
})
return array[index]
}
I get that the findNote function returns the lookedUp property if it exists but i don't understand how the note parameter gets the value we provide for the array parameter. We never provide an argument for the note parameter. Does the arguments provided for the findNote function automatically pass to findIndex?