Tell us what’s happening:
rule two prohibits any part of the code being a number followed by a letter.
I was able to pass with this code even though it breaks rule three.
Maybe there should be another point in the checklist?
Your code so far
let username = "j0e";
let userCheck = /^\D+[\D\d][\D\d]\d*$|^\D\D$/;
let result = userCheck.test(username);
console.log(result) //true
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
.
Challenge: Restrict Possible Usernames
Link to the challenge: