JavaScript Coding Challenge/Interview Question: Password Validator

Veröffentlicht am: 19 März 2020
auf dem Kanal: Daily Coding Challenges
84
1

/*
Write a program that validates passwords to match a specific set of rules.
A valid password is one that conforms to the following set of rules:
1.Minimum length is 5
2.Maximum length is 10
3.should contain at least 1 number
4.should contain at least one special character(!@#$%^&*)
5.should not contain spaces
*/


console.log(passwordValidator("KRN23!#r")); //true
console.log(passwordValidator("KWPufgg")); // false
console.log(passwordValidator("uuGG!e")); //false
console.log(passwordValidator("wpf3f")); //false
console.log(passwordValidator("kdGP44#@5gyNME")); //false
console.log(passwordValidator("K3@o")); //false
console.log(passwordValidator("KG 2!olp%1")); //false
console.log(passwordValidator("4Pl3@bW7")); //true


Auf dieser Seite können Sie das Online-Video JavaScript Coding Challenge/Interview Question: Password Validator mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Daily Coding Challenges 19 März 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 84 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!