em Array em JS
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 colors = ["red", "blue", "green"];
var hasRed = colors.includes("red"); //true
var hasYellow = colors.includes("yellow"); //false
var myList=["a", "b", "c"];
mylist.includes("d")//returns 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
how to use innerHTML