Tell us what’s happening:
That’s my answer and the program gives it to me as correct, but when I see the hint’s answer it’s very different from mine.
Your code so far
let username = "JackOfAllTrades";
let userCheck = /.\D./i; // Change this line
let result = userCheck.test(username);
console.log(result);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames