Skip to content

ArtemZakhar/js_check_password

 
 

Repository files navigation

QA: Check password

Write tests for the function checkPassword, which takes the string password and returns true for the valid password, and false for invalide.

Rules for the valid password:

  • accepts only letters of the Latin alphabet Aa-Zz;
  • at least 8 characters inclusive;
  • maximum 16 characters inclusive;
  • contains at least 1 digit, 1 special character, 1 uppercase letter.

Examples:

checkPassword('Password1!') === true
checkPassword('qwerty') === false
checkPassword('Str@ng') === false

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%