Challenge: Input Validation for Registration
Tâche
Swipe to start coding
Implement a method that validates user registration information by checking both email and password requirements.
- The method must return
trueif the email is in a valid format and the password meets length requirements. Otherwise, it must returnfalse. - The email is valid if it contains exactly one "@" symbol and at least one "." after the "@".
- The password is valid if it is at least 8 characters long.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 2
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 4.17
Challenge: Input Validation for Registration
Glissez pour afficher le menu
Tâche
Swipe to start coding
Implement a method that validates user registration information by checking both email and password requirements.
- The method must return
trueif the email is in a valid format and the password meets length requirements. Otherwise, it must returnfalse. - The email is valid if it contains exactly one "@" symbol and at least one "." after the "@".
- The password is valid if it is at least 8 characters long.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 2
single