Restrict Possible Usernames Doubt!

Tell us what’s happening:
I Doubt why it’s the right answer.

Your code so far

let username = "9";
let userCheck = /[A-Za-z]./ig; // Change this line
let result = userCheck.test(username);

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:

It is actually not the right answer to the problem. It is just a loophole that happens to pass the given test, there are many more.

1 Like