Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "When reading `object.label`, where does JavaScript look first?" on CodeWiki (https://codewiki.com/practice/mcq/javascript/checkpoint-2/checkpoint-2-prototype-lookup/).
Context (verbatim from the page):
"""
When reading `object.label`, where does JavaScript look first?
On `object` itself, then along its prototype chain
On `Object.prototype`, then on `object`
Only on the constructor that created `object`
"""
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.