04/11

2026-11-04来源 dev.toEnglish

04/11
TOP - Foundation: 95%
Project: Calculator

Continue working with Calculator project.

Fixed one bug and another jump out 😭

Fixed that when press "=" the math end like TOP instructed instead of become number1.

If you press a number after "=" it will become a new number1, not adding number to the result. ( didn't let you press other operate button to continue calculate after "=" though )

Added decimal for the result to 2 number with .toFixed(2)

I think the calcultor is a bit better now.
https://docuong1666-creator.github.io/Calculator/

Still have extra credit to work with though.

原文:https://www.a8q9.cn/en/article/04-11-40fad3.html

相关文章