Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What happens to a bound this when a constructible bound function is called with new?" on CodeWiki (https://codewiki.com/practice/mcq/javascript/this-binding/bound-constructor-receiver/).
Context (verbatim from the page):
"""
What happens to a bound this when a constructible bound function is called with new?
The bound object is initialized and returned.
A new receiver is created; bound leading arguments still apply.
new always throws for every bound function.
The call uses undefined as this in strict mode.
"""
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.