Guest practice: this set is not saved and does not count.
What does this log?
const msg = "Order 42 shipped. Order 57 pending."; console.log(msg.search(/\d/), msg.replace(/\d+/g, "#"));
console.log(new RegExp("\d+").test("42"), new RegExp("\\d+").test("42"));
const re = /a/g; console.log(re.test("a"), re.test("a"), re.test("a"));
const word = "caf\u00e9"; console.log(word.match(/\w+/)[0].length, word.match(/\p{L}+/u)[0].length);
console.log(/^cat|dog$/.test("hotdog"), /^(cat|dog)$/.test("hotdog"));
Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.
Check my answers