JavaScript Coding Challenge/Interview Question: Password Validator

Publié le: 19 mars 2020
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne JavaScript Coding Challenge/Interview Question: Password Validator durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Daily Coding Challenges 19 mars 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 84 fois et il a aimé 1 téléspectateurs. Bon visionnage!