javascript how to find out if a string contains substring code example
Example: check for substring javascript
const string = "javascript";
const substring = "script";
console.log(string.includes(substring)); //true
const string = "javascript";
const substring = "script";
console.log(string.includes(substring)); //true