match a substring in javascript code example
Example: match substring js
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));
const string = "foo";
const substring = "oo";
console.log(string.includes(substring));