⬅️ JavaScript 🔗 Stack Overflow

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