Skip to content

This is a simple calculator app that can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It is built with HTML, CSS, and JavaScript only. No frameworks or libraries are used.

License

Notifications You must be signed in to change notification settings

KhaledAshrafH/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

This is a simple calculator app that can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It is built with HTML, CSS, and JavaScript only. No frameworks or libraries are used.

Features

  • The calculator has a user-friendly interface with buttons for digits and operators.
  • The calculator can handle decimal numbers and negative numbers.
  • The calculator can display the current expression and the result on the screen.
  • The calculator can clear the current expression or delete the last character with the C and DEL buttons respectively.
  • The calculator can evaluate the current expression with the = button or by pressing the Enter key.

Demo

You can try out the calculator app here.

Installation

To run the calculator app locally, you need to clone this repo and open the index.html file in your browser. Alternatively, you can use a live server extension in your code editor.

Usage

To use the calculator app, you can either click on the buttons with your mouse or use your keyboard. The keyboard mappings are as follows:

  • 0-9: Digits
  • +, -, *, /: Operators
  • .: Decimal point
  • -: Negative sign (press twice to toggle)
  • Enter: Evaluate
  • Backspace: Delete
  • Escape: Clear

License

This project is licensed under the MIT License - see the [LICENSE] file for details.

Author

This project is created by Khaled Ashraf. You can contact me at My Email or follow/add me on My Facebook.

About

This is a simple calculator app that can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It is built with HTML, CSS, and JavaScript only. No frameworks or libraries are used.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published