Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT Copy prompt I am reading "Before migrated code trusts API data returned by `JSON.parse` and exposes it to an Alpine component, name the check that must still verify its shape at execution time." on CodeWiki (https://codewiki.com/practice/fill/javascript/checkpoint-4/checkpoint-4-runtime-boundary/).
Context (verbatim from the page):
"""
Before migrated code trusts API data returned by `JSON.parse` and exposes it to an Alpine component, name the check that must still verify its shape at execution time.
"""
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.