I have this script and would like to make it search if just the word Mango is in the array and if it is true console.log the index of it.
<p>Check if the fruit array contains "Mango":</p>
<p><strong>Note:</strong> The includes method is not supported in Edge 13 (and earlier versions).</p>
var fruits = ["Banana is yellow", "Orange juice", "Apple is red", "Mango is orange"];
var n = fruits.includes("Mango");