startsWith
    endsWith
    includes

    1. const message = 'Error: foo is not defined.'
    2. console.log(
    3. // message.startsWith('Error')
    4. // message.endsWith('.')
    5. message.includes('foo')
    6. )