Note: toy calculator is buggy. For accuate answers you should check out a little better version.
Today’s task was to make a basic calculator in HTML/CSS/JS. It looks very easy from the outside but is actually quite complex. Plan was to let a user enter any string and then evaluate it to display the final result. But I was able to only implement a subset of this functionality as parsing a complex string, is well, complex.
In its current shape you can enter only a string consisting of one type of operator to get the correct result.
You can try the app here.
For a good amount of time I was stuck in making the whole string evaluation work. But an hour back I decided to abandon it and ship something basic. I will take up string evaluation as a project for another day.