const re1 = /hello/i
const re2 = new RegExp('hello', 'i')
re1.test('Hello world') // β trueUse the RegExp constructor or literal syntax to create a regular expression.
new RegExp(pattern) creates a RegExp from a string.
Challenge: Verify that new RegExp('hello').test('hello') returns true.