Why non numbrs r checkd in the eg. givn under with D* when we r already checking 3-6 charactr with \w{3,6}. Wouldn't D* inc. pass size by including special char

 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)/;

Welcome @sking01!

What is you question?

sry i updated question. i’m new. i just want to understand code and why D* is used