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 works with any pattern including alternation.
Challenge: Verify that /a|b/.source equals 'a|b'.