Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What is the value of `[1, 2, 3].map(n => n * 2)`?" on CodeWiki (https://codewiki.com/practice/mcq/javascript/checkpoint-1/checkpoint-1-map-output/).
Context (verbatim from the page):
"""
What is the value of `[1, 2, 3].map(n => n * 2)`?
`[2, 4, 6]`
`[1, 2, 3]`
`12`
"""
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.