what does .includes function do in javaScript code example
Example: javascript includes
const pets = ['cat', 'dog', 'bat'];
console.log(pets.includes('cat'));
// output: true
const pets = ['cat', 'dog', 'bat'];
console.log(pets.includes('cat'));
// output: true