const string = "javascript"; const substring = "script"; console.log(string.includes(substring)); //true