Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "An API accepts only ordinary finite measurements. Which boundary check states that policy directly?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/floating-point-arithmetic/finite-boundary-policy/).
Context (verbatim from the page):
"""
An API accepts only ordinary finite measurements. Which boundary check states that policy directly?
Number.isFinite(value)
value !== 0
Boolean(value)
value === 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 CS foundations. Where you are unsure, say so.