Mini-Projects
Mini-Projects copied to clipboard
Update cal.js
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.