Hi, I think creating a calculator is an interesting task for a javascript developer. I decided to try it myself. My calculator has some issues that should be fixed. Maybe I’ll do it later 🙂

Here it is, it can do the simplest mathematical calculations, you can try it right here:

C
9876543210.=
÷
×
+

And here is the code

HTML

CSS

JavaScript

I know this code is not perfect. It was written in 30 minutes. I also decided not to use jQuery since we began to forget that pure JS without any libraries is still relevant.

In case if you want to download this calculator – here is a link: download