I have the following array of strings:
array = ["fox jumps", "snail slides", "airplane flies"];
I'm trying to find the string in the array containing "airplane", and return the string number in the array.
I have the following code so far:
var array = ["fox jumps", "snail slides", "airplane flies"];
var el = array.find(a =>a.includes("airplane"));
console.log(el)
...which finds the string "airplane flies"
From this point, how do I return the string number? in this example, it should be "3"