flagsbeginnerconst re = /hello/gi
console.log(re.flags) // β 'gi'Read RegExp.flags to get a string of all active flags on the regular expression.
The flags property always returns a string.
Challenge: Verify that typeof /test/g.flags is 'string'.