let password = "abc123";
let checkPass = /(?=\w{3,6})(?=\D*\d)/;
checkPass.test(password);
I do not know why they put D* in there, I mean they just want to have at least one number right, so to me having only \d is enough. Can you explain that to me.Thank you