Capstone: A Real Password-Strength Checker
Let's combine everything into one real tool: a password strength checker that doesn't just say yes/no, but tells you WHY a password is weak — exactly like the strength meters you've seen on real signup forms.
Your turn
Write checkPasswordStrength(pw) that returns a list of problems (as strings) with the password: too short (<12 chars), no number, no uppercase letter, no symbol. Log the result for a weak and a strong password.
- Flags passwords under 12 characters
- Flags passwords with no uppercase letter
- Flags passwords with no number
- Flags passwords with no symbol
- A genuinely strong password returns an empty list
Output shows up here when you Run.
Ask JARVIS for a hint