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 returns the flags of the RegExp sorted alphabetically.
Challenge: Verify that /hi/gi.flags equals 'gi'.