Explain restrict username

Tell us what’s happening:
I don’t understand Usernames have to be at least two characters long. A two-character username can only use alphabet letters as characters. how I do it. how can bind it to two characters?

Your code so far


let username = "JackOfAllTrades";
let userCheck = /^[a-z][A-z]\d*/ig; // Change this line
let result = userCheck.test(username);

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.141 Safari/537.36.

Challenge: Restrict Possible Usernames

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.