| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Current Level: 31 | 32 |
Verify your validation is working perfectly and check off your progress.
Click Send with empty input (should show validation message), then type something and click Send (validation should disappear). Open DevTools Console tab to verify no API calls are made with empty input. If both work, your validation is perfect!
Your chatbot now handles errors gracefully. You’ve built a complete, polished app!
When you’ve completed this level, commit your work with a meaningful message like:
git add .
git commit -m "feature: complete step 5 - validation polish"
input/keyup event:
document.getElementById(...), .textContent, .classList.add/remove, and skip helper callsNext: Level 32 - Challenge Extensions
| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Current Level: 31 | 32 |