A simple calculator implemented using HTML, CSS and JavaScript.
- Basic arithmetic operations (addition, subtraction, multiplication, division)
- AC button to clear the display
- DE button to delete the last digit
- Evaluates the expression and shows the result when you press the "=" button
To run the calculator, simply open the index.html
file in your browser.
The HTML file contains the structure and design of the calculator. It includes a display where the expression is displayed, and buttons for performing various operations.
The CSS file provides the styling for the calculator, using the Roboto font and a gradient background.
The JavaScript file uses event listeners to listen to button clicks, and performs the necessary actions based on the button id. The expression is evaluated using the eval()
function.