Backstory:

This was my first challenge of substance when it comes to programming. Before this project I had only been doing projects that I was spoon-fed the answers from the book or tutorial I was watching, but one day when scrolling YouTube I clicked on a dude making a calculator and was doing an ASMR type thing with it, and while watching it I decided to not watch it because I wanted to make one myself without getting the answers from the video. (I might go back and look at their CSS because mine is GODAWFUL) Anyway I did make the calculator and added some cool features I was proud of.

Features:

Keypad

I made and styled a keypad that you can click.

Display

I added a space for a display of numbers. I then made it so when you hit numbers on the keypad they displayed on the display I did this using var to start.

Typing

I made it so when you typed on the keyboard it also worked so that you didn’t have to use the mouse if you didn’t want to.

Functionality

Well it is a calculator so I would have to make it work at some point in time, I was dreading starting this part of the project for a few days but once I did it really wasn’t that bad of logic to create, but I did switch the numbers var’s to arrays[] and just used .join to make sure it was a number and not a sequence.

Adding ease of life

After making the calculator work I added some ease of life which is this case was making it so if you type 5+5 instead of hitting the = button to solve the equation you could hit the + button again to make the the equation solve and start an addition for another number which would make something link 8+6+9+2+4 a lot easier to do.