const string = "foo"; const substring = "oo"; console.log(string.includes(substring)); // true Run code snippet