check if a string containsd a value code example
Example 1: javascript string contains function
s = "Hello world";
console.log(s.includes("world"));
Example 2: javascript string includes
'Blue Whale'.includes('blue') // returns false
s = "Hello world";
console.log(s.includes("world"));
'Blue Whale'.includes('blue') // returns false