js string if sub string in string 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