All challenges

AI NATIVE / LEVEL 0 / PASS

Fix a broken calculator

Find and fix a bug that joins two numbers as text instead of adding them.

Download starter files

Tasks

  1. Check the output when you enter 2 and 3.
  2. Change the result from 23 to 5.
  3. Explain the cause and how you tested the fix in README.

Pass criteria

  • Correctly add two numbers, including zero, negative numbers, and decimals. Examples: 2 + 3 = 5; 10 + 7 = 17.
  • An empty input shows a message instead of a result.
  • README explains the bug and how the fix was checked.

You can ask AI like this

“Entering 2 and 3 produces 23. Explain why and fix it to add numbers.”

Tool use is not graded. We check index.html, README.md, and local .js files at your submitted commit. Use the supplied starter format and create your own repository.

Submit your finished commit

Enter a public GitHub repository URL and a 40-character commit hash. We check that commit in an isolated environment. Infrastructure failures go to an operator for review.

Starting a timed challenge or submitting an introductory task costs 5P. Resuming an attempt and system regrading are free.