COOKIE CALCULATOR (MY PET NAME) banner

COOKIE CALCULATOR (MY PET NAME)

1 devlog
24m 55s

This is a lightweight calculator built to be fast, simple, and distraction-free.
I built it on my own to practice core web fundamentals.
Next steps include refining the UI and adding better usability features also I have used my previous code to…

This is a lightweight calculator built to be fast, simple, and distraction-free.
I built it on my own to practice core web fundamentals.
Next steps include refining the UI and adding better usability features also I have used my previous code to start working more on ui instead of building it from scratch its my first project hope you like it

This project uses AI

Used ChatGPT for step-by-step guidance, debugging, and learning how to deploy the project. All final code decisions and edits were done by me.

Demo Repository

Loading README...

adityanegi12499

Started this project as a simple calculator, then realized “simple” calculators can still be annoying if done wrong 💀
The first version auto-calculated everything, which felt chaotic, so I rebuilt the logic to behave like a real calculator — it now waits for the user to press = before doing any math.

I rewrote the entire JavaScript logic to properly handle:

operator selection and display

clean input flow (no jumps, no surprises)

a real +/- toggle instead of a fake button

floating point precision issues (because JavaScript math is cursed)

I also improved the UI by showing the selected operation (like 8 ×) so users always know what’s going on. The goal was to keep it minimal, readable, and not annoying to use.

Overall, this project helped me understand state management in JavaScript (current value, previous value, operator) and how small UX decisions can make or break an app.

Still improving it, but this version finally feels ship-worthy 🚢🔥

Attachment
1

Comments

adityanegi12499
adityanegi12499 about 1 month ago

Guys do tell if you like it