/javascript-calculator

A simple calculator built using HTML, CSS and JavaScript

Primary LanguageJavaScriptMIT LicenseMIT

Javascript Calculator

AlexFlorides - javascript-calculator stars - javascript-calculator forks - javascript-calculator


A simple calculator built using vanilla HTML, CSS and JavaScript.

Controls / Functionality

  • Can be controlled using either mouse / touchscreen or by using the keyboard pressing the corresponding keys.

  • Decimal point can be inserted using both comma or dot key on the keyboard.

  • Backspace deletes last digit.

  • By keep pressing the equal operator will recalculate result based on the last operation.

  • Last operation will show up above the input box every time any of the operators is selected.

Demo

View site - GH Pages

javascript-calculator

Contributions

  • Feel free to suggest any improvements by creating an issue.

  • You can also work on an already open issue and pull request when finished, so I can review the changes and eventually merge them to the base branch.