flagsbeginnerconst re = /hello/gi
console.log(re.flags) // β 'gi'Read RegExp.flags to get a string of all active flags on the regular expression.
A RegExp with no flags has an empty string for flags.
Challenge: Verify that /hi/.flags equals ''.