The 3rd JS challenge is done. Think I made the code overcomplicated thinking about adding the most features real calculators have without planning the states of the calculator after pushing specific buttons. A good lesson for me, though. After I was done with calculator I thought about drawing at least a mind map before diving right into coding. Anyway, the calculator is somehow useful.
Here it is: Link