Challenge: Validation
Task
In this final challenge, let's implement validation logic for the input fields. The task is to check if the input field values are empty strings. If they are empty, it is necessary to display the corresponding warning messages. Follow the steps below:
- Check if the input field responsible for the user's first name is empty.
- Check if the input field responsible for the user's last name is empty.
- Check if the input field responsible for the user's email is empty.
Tack för dina kommentarer!
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Ställ mig frågor om detta ämne
Sammanfatta detta kapitel
Visa verkliga exempel
Awesome!
Completion rate improved to 1.96
Challenge: Validation
Svep för att visa menyn
Task
In this final challenge, let's implement validation logic for the input fields. The task is to check if the input field values are empty strings. If they are empty, it is necessary to display the corresponding warning messages. Follow the steps below:
- Check if the input field responsible for the user's first name is empty.
- Check if the input field responsible for the user's last name is empty.
- Check if the input field responsible for the user's email is empty.
Tack för dina kommentarer!