La cadena JavaScript contiene
var string = "foo",
substring = "oo";
console.log(string.includes(substring));
Cautious Crane
var string = "foo",
substring = "oo";
console.log(string.includes(substring));
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));
'Bandeira do Brasil'.includes('brasil'); // returns false
'Bandeira do Brasil'.includes('Brasil'); // returns true