Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johnftitor/javascriptcalculator

And here another Odin Project for the profile, following the foundations path. All comments are well received as part of my learning process, I'll be really thankful!
https://github.com/johnftitor/javascriptcalculator

Last synced: about 3 hours ago
JSON representation

And here another Odin Project for the profile, following the foundations path. All comments are well received as part of my learning process, I'll be really thankful!

Awesome Lists containing this project

README

        

25/08/2021: First I worked on the basic functionality, creating some basic math operations, as well as an operate function to use them based on an operator value. Next, I built with HTML the basic structure of the calculator, and gave it a basic appearance.

Finally, I added EventListeners to the number buttons so they display their values.

27/08/2021: I started adding functionality to the calculator. Getting the operator buttons to work was a bit harder than I expected it, but it was fun. Now they work although the equal button behaves anormaly when pressed after an operator (Basically it uses the stored values). So I need to fix that. Today I learned more about the relation betten Javascript and the DOM elements, also I used the google console and debugging system more, so I'm getting used to it. That's all for today.

30/08/2021: Today I fixed the Equal bug and added the 0 division error to the equal operator. Also, I added the clear button. Added sound effects to the buttons, this sound effects were obtained from https://www.zapsplat.com.

I finished the project by afternoon, adding dot and backSpace button, as well as two other operations. By the end, I added keyboard support for the numbers and basic operations (It sounds for all the keyboard keys though hehe), which works as intented. I can say the version 1.0 of this Calculator is ready, I might come back to it later to improved it. As a project to put into practice my learning so far, it was quite fun and interesting.