Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What does this generated conversion print?" on CodeWiki (https://codewiki.com/practice/predict/ai-era/ai-assisted-debugging/predict-truthiness-fallback/).
Context (verbatim from the page):
"""
function importedStock(raw) {
return Number(raw) || 100;
}
console.log(importedStock("0"), importedStock("bad"));
"""
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.