ignoreCasebeginnerconst re = /hello/i
console.log(re.ignoreCase) // β true
'HELLO'.match(re) // matchesRead RegExp.ignoreCase to check whether the 'i' flag is set on the regular expression.
The ignoreCase property always returns a boolean.
Challenge: Verify that typeof /hi/i.ignoreCase is 'boolean'.