Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "In JavaScript, which result does `0.1 + 0.2 === 0.3` produce?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/checkpoint-2/checkpoint-2-float-output/).
Context (verbatim from the page):
"""
In JavaScript, which result does `0.1 + 0.2 === 0.3` produce?
`false`, because these decimal fractions are rounded to binary floating-point approximations.
`true`, because all literals have one decimal place.
`NaN`, because decimal fractions are unsupported.
"""
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.