Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What does this program print?" on CodeWiki (https://codewiki.com/practice/predict/foundations/floating-point-arithmetic/predict-decimal-sum/).
Context (verbatim from the page):
"""
const total = 0.1 + 0.2;
console.log(total);
console.log(total === 0.3);
console.log(Number.isFinite(total));
"""
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.