let username = "JackOfAllTrades";
let userCheck = /^[a-z][a-z]*([a-z]+|[0-9][0-9]+)[0-9]*$/gi; // Change this line
let result = userCheck.test(username);
console.log(result)
This code literally passes every condition of the lesson and also the ones enlisted at the bottom of the challenge. But on hitting the ctrl+ enter , it doesn't work.
**Link to the challenge:**
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames