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: