Regular Expressions: Restrict Possible Usernames
let username = "JackOfAllTrades";
let userCheck = /[\D]/g; // Change this line
let result = userCheck.test(username);
Surprised this will pass the test
Regular Expressions: Restrict Possible Usernames
let username = "JackOfAllTrades";
let userCheck = /[\D]/g; // Change this line
let result = userCheck.test(username);
Surprised this will pass the test