flagsbeginnerconst re = /hello/gi
console.log(re.flags) // β 'gi'Read RegExp.flags to get a string of all active flags on the regular expression.
With g, i, and m flags set, flags returns 'gim' (alphabetical order).
Challenge: Verify that /test/gim.flags includes 'g'.