String.prototype.includesintermediateconst str = 'Hello, World!'
str.includes('World') // β true
str.includes('xyz') // β false
str.includes('Hello', 1) // β falseUse includes() to check if a string contains a specific substring, with an optional start position.
The optional second argument position sets where the search starts.
'hello hello'.includes('hello', 1) // β true (found at index 6)
'hello hello'.includes('hello', 7) // β false
Challenge: Implement includesAfter(str, sub, pos).