Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Why must a server validate data that already passed browser constraint validation?" on CodeWiki (https://codewiki.com/practice/mcq/frontend/form-validation/server-remains-authoritative/).
Context (verbatim from the page):
"""
Why must a server validate data that already passed browser constraint validation?
A client can modify the DOM or send a request without using the form.
Browser validation encrypts values, but the server must decrypt them.
The server is the only layer that can display an inline error.
HTML constraints stop working after the first successful submit.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Frontend. Where you are unsure, say so.