When a user enters an email and password, we don't have validation checks for a password if it is strong, medium, or easy therefore a validation layer for the password is needed.
We can do it using regex(let's say we can give some conditions that if it contains uppercase, a lowercase, at least this length, at least one special character, and a (.) should strictly be there, then it suggests being strong password, similarly for medium and easy, this suggestion must be visible to the user.
Can refer to this!
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions
When a user enters an email and password, we don't have validation checks for a password if it is strong, medium, or easy therefore a validation layer for the password is needed. We can do it using regex(let's say we can give some conditions that if it contains uppercase, a lowercase, at least this length, at least one special character, and a (.) should strictly be there, then it suggests being strong password, similarly for medium and easy, this suggestion must be visible to the user. Can refer to this! https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions