Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A browser form passes every Constraint Validation API check. Which statement still holds at the server boundary?" on CodeWiki (https://codewiki.com/practice/mcq/javascript/checkpoint-4/checkpoint-4-validation-boundary/).
Context (verbatim from the page):
"""
A browser form passes every Constraint Validation API check. Which statement still holds at the server boundary?
The server must validate the submitted data independently.
The server may trust the data because browser validation cannot be bypassed.
The server only needs to repeat checks created with `setCustomValidity`.
"""
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 JavaScript. Where you are unsure, say so.