Building an expression calculator using HTML Canvas.
The Expression Calculator project aims to develop a user-friendly application that can evaluate mathematical expressions entered by users. Whether it's simple arithmeti or complex algebraic equations, this calculator will provide accurate results swiftly and efficiently.
Users can input expressions using arithmetic operators (+ (add), - (subtract), * (multiply), / (divide), % (modulus)) and evaluate them using the "=" button.
The application allows users to delete characters using the "Back" button and provides clear error messages in the value field when the expression is malformed.
Users can see an "Invalid Expression" error message on the value field when the expression is malformed.
The project leverages the JavaScript Canvas API to create a dynamic and interactive user interface for expression evaluation.
The application adheres to the requirement of not using any JavaScript frameworks or CSS frameworks.
The codebase is extensively documented to enhance readability and understanding for developers contributing to the project.
The project includes a .gitignore
file to exclude unnecessary files from version control, ensuring a clean repository.
- Take a Clone of the repository -
git@github.com:Agnii555/canvas-calculator.git
-
Once the clone is ready open the project folder inside VScode or any other code editor.
-
Open the index.html using Live server for VSCode Or just open the the index.html in the browser.