how to check if a string is exist or not in javascript code example
Example 1: javascript string contains
var string = "foo",
substring = "oo";
console.log(string.includes(substring));
Example 2: How find a specific character in js
var word = "This is how you locate a word in a string";
var n = word.includes("word");