Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "How does an arrow function obtain `this`?" on CodeWiki (https://codewiki.com/practice/mcq/javascript/checkpoint-2/checkpoint-2-arrow-this/).
Context (verbatim from the page):
"""
How does an arrow function obtain `this`?
It captures `this` from its enclosing lexical scope.
It binds `this` to the object literal that contains it.
It chooses `this` from its first argument.
"""
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.