Tell us what’s happening:
This code is working, but i have a question…
In the requirements it says that " Your regex should not match J
"
How is this posible?
Your code so far
let username = "JackOfAllTrades";
let userCheck = /[^\d$]/gi; // Change this line
let result = userCheck.test(username);
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames