Password strength

Your task is to create a password form where the user can see the strength of his password.


  • If the password matches the given rule, display YES, otherwise display NO.
  • If 0 or 1 rules are met, display: WEAK.
  • If 2 or 3 rules are met, display: MEDIUM.
  • If all rules are met, display STRONG.
  • You can assume that a special character is a character that it's not a number or letter.

You are free to add classes, styles, ids, but don't edit or remove data-test attributes.
Create an account to start coding
Create account