does a string includes a character javascript code example
Example 1: How find a specific character in js
var word = "This is how you locate a word in a string";
var n = word.includes("word");
Example 2: javascript includes
const pets = ['cat', 'dog', 'bat'];
console.log(pets.includes('cat'));
// output: true