Tell us what’s happening:
how do you make so it can be true and false when entering the last one ([a-z]|\d)+$
?
Your code so far
let username = "JackOfAllTrades";
let userCheck = /^[a-z][a-z]([a-z]|\d)+$/i; // Change this line
let result = userCheck.test(username);
console.log(result)
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0
.
Challenge: Restrict Possible Usernames
Link to the challenge: