flagsbeginnerconst re = /hello/gi
console.log(re.flags) // β 'gi'Read RegExp.flags to get a string of all active flags on the regular expression.
Flags are sorted alphabetically, so im stays im.
Challenge: Verify that /hello/im.flags equals 'im'.