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.

문의하기

서비스명: 포트포올
문의는 운영자에게 이메일로 전송됩니다.

이메일과 문의 내용은 답변을 위해 운영자 및 메일 발송 서비스로 전송됩니다. 비밀번호·결제정보·민감한 개인정보는 입력하지 마세요.