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

Update cal.js

Open Stutiporwal1 opened this issue 6 months ago • 0 comments

This pull request introduces a small but meaningful refactor to the calculator logic. Replaced the manual parsing and computation inside the compute() function with a more concise and readable approach using eval(). This change simplifies the expression evaluation process and improves maintainability.

No other functionality has been modified. The UI behaviour remains the same.

Stutiporwal1 avatar Jun 14 '25 07:06 Stutiporwal1