scrimba
Learn Regex
Restrict Possible Usernames
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Restrict Possible Usernames
AboutCommentsNotes
Restrict Possible Usernames
Expand for more info
index.js
run
preview
console
/*
1) If there are numbers, they must be at the end.
2) Letters can be lowercase and uppercase.
3) At least two characters long. Two-letter names can't have numbers.
*/

let username = "JackOfAllTrades";
let userCheck = /change/; // Change this line
let result = userCheck.test(username);
Console
index.html
-2:45