sourcebeginnerconst re = /hello world/i
console.log(re.source) // β 'hello world'Read RegExp.source to get the pattern text of the regular expression without slashes or flags.
The source property always returns a string.
Challenge: Verify that typeof /abc/.source is 'string'.