Elemento JavaScript na matriz
var letters = ["A", "B", "C", "D"];
var result = letters.includes("A");
// result will be TRUE or FALSE
Terrible Tern
var letters = ["A", "B", "C", "D"];
var result = letters.includes("A");
// result will be TRUE or FALSE
var fruits = ["Banana", "Orange", "Apple", "Mango"];
var n = fruits.includes("Mango");
const array1 = [1, 2, 3];
console.log(array1.includes(2));
// expected output: true
const pets = ['cat', 'dog', 'bat'];
console.log(pets.includes('cat'));
// expected output: true
console.log(pets.includes('at'));
// expected output: false
var a = [1, 2, 3];
a.includes(2); // true
a.includes(4); // false