Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What does `JSON.stringify({ kept: 1, skipped: undefined })` return?" on CodeWiki (https://codewiki.com/practice/mcq/javascript/checkpoint-4/checkpoint-4-json-undefined/).
Context (verbatim from the page):
"""
What does `JSON.stringify({ kept: 1, skipped: undefined })` return?
`{"kept":1}`
`{"kept":1,"skipped":null}`
`{"kept":1,"skipped":"undefined"}`
"""
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.