Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What happens when new invokes a bound function whose target is constructible?" on CodeWiki (https://codewiki.com/practice/mcq/javascript/call-apply-bind/bound-function-construction/).
Context (verbatim from the page):
"""
What happens when new invokes a bound function whose target is constructible?
The bound receiver becomes the new object.
A new receiver is created; bound leading arguments are still prepended.
All bound state is ignored, including leading arguments.
Every bound function throws when used with new.
"""
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.