javascript match pattern return true or false code example Example: js match true false /match/.test('string match') // true