Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/withaarzoo/calculator


https://github.com/withaarzoo/calculator

Last synced: about 10 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Calculator
A simple calculator implemented using HTML, CSS and JavaScript.

## Features
* 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

## How to run
To run the calculator, simply open the `index.html` file in your browser.

## Code Overview
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.

## Preview
Screenshot_20230213_154448