Guest practice: this set is not saved and does not count.
What does this log?
console.log("red, green, red".replace(/red/, "RED"), "red, green, red".replace(/red/g, "RED"));
const word = "caf\u00e9"; console.log(word.match(/\w+/)[0].length, word.match(/\p{L}+/u)[0].length);
console.log(/3.14/.test("3514"), /3\.14/.test("3514"), /3\.14/.test("3.14"));
console.log("Give 100%!".match(/\W/g));
/\d{5}/ accepts "my zip is 212019999 thanks" as a zip code, which is why validation patterns need ^ and $.
/\d{5}/
"my zip is 212019999 thanks"
^
$
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