Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Name the error class thrown when `[].reduce(callback)` has no initial value." on CodeWiki (https://codewiki.com/practice/fill/javascript/checkpoint-1/checkpoint-1-empty-reduce/).
Context (verbatim from the page):
"""
Name the error class thrown when `[].reduce(callback)` has no initial value.
"""
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.