๐ Live Demo: https://quanta1910.github.io/CodeAlpha_Calculator/
A simple and responsive calculator built using HTML, CSS, and JavaScript. This project performs basic arithmetic operations with a clean and user-friendly interface.
- Basic operations: Addition (+), Subtraction (-), Multiplication (*), Division (/)
- Clear button (C) to reset input
- Decimal support
- Responsive layout using CSS Grid
- Error handling for invalid expressions
- HTML5
- CSS3 (Grid Layout)
- JavaScript (DOM Manipulation)
This is a front-end based calculator that:
- Takes user input through buttons
- Displays input and output in a screen area
- Evaluates expressions dynamically using JavaScript
- User clicks on buttons to enter numbers/operators
- Input gets displayed on the screen
- On clicking
=, the expression is evaluated - If expression is invalid โ shows
"Error" Cbutton clears the screen
- Keyboard input support
- Scientific calculator features
- Better UI animations
- Replace
eval()with safer logic
Dhruv Gupta
If you like this project, give it a โญ on GitHub!