simple password checker that looks for between 3 and 6 characters and at least one number:
let password = "abc123";
let checkPass = /(?=\w{3,6})(?=\D*\d)/;
checkPass.test(password);
sry i updated question. i’m new. i just want to understand code and why D* is used
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.