You are viewing a single comment's thread. Return to all comments →
function minimumNumber(n, password) { let result=0; /[a-z]{1,}/.test(password.toString())?'':result++; /[A-Z]{1,}/.test(password.toString())?'':result++; /[0-9]{1,}/.test(password.toString())?'':result++; /[!@#$%^&*()+]{1,}|\-/.test(password.toString())?'':result++; if((n+result)<6){ result+=Math.abs((result+password.toString().length)-6); } return result; }
Seems like cookies are disabled on this browser, please enable them to open this website
Strong Password
You are viewing a single comment's thread. Return to all comments →
Javascript code solution