Username_conditions_check

Username_conditions_check
0

#1

Tell us what’s happening:

Your code so far


let username = "JackOfAllTrades";
let userCheck = /[a-zA-Z]+\d$/gi; // 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/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames


#2

Keep this test condition in mind.

  1. Usernames have to be at least two characters long. A two-letter username can only use alphabet letter characters.