Question
Language: Typescript Answer in CODE ONLY! Explain with comments if you want. Problem: You are in charge of implementing the password strength checker on the
Language: Typescript
Answer in CODE ONLY!
Explain with comments if you want.
Problem:
You are in charge of implementing the password strength checker on the backend of a web application. The requirements for password are: 1. Must be at least 10 characters. 2. Must include alphanumerics and 1 special character. 3. Must include at least 1 capital letter 4. Cannot start with a number
You must return a object back to the front end in the format of: {1: boolean, 2: boolean, 3: boolean, 4: boolean}
where 1 is the first requirement and 4 is the last requirement. The boolean must be a true or false value representing whether that specific requirement is satisfied or not.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started