0.0 0


Tell us what’s happening:

Any one completed this challenge…
how to check the condition of atleast two char in Regex

Your code so far

let username = "JackOfAllTrades";
let userCheck = /0-9$/i; // 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/65.0.3325.181 Safari/537.36.

Link to the challenge:


To specify n or more of something you can use {n,} after it

So for example if we want 4 or more of the letter a, we can use a{4,} in our regex