Mini-Projects icon indicating copy to clipboard operation
Mini-Projects copied to clipboard

Update cal.js to fix a calculator issue

Open Hajer3349 opened this issue 2 years ago • 0 comments

I noticed that the result lingers on the display space after clicking a number and the clicked number is added as an additional digit to the result. So I fixed the issue so that the display is cleared after clicking a number and the last result is being operated if an operator is clicked.

Resolves: (adder) function

Hajer3349 avatar Aug 19 '23 12:08 Hajer3349