use of test in regular expression method code example Example: js match true false /match/.test('string match') // true