EdRyan / calculator-react

A simple four-function calculator using React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Calculator

A simple four-function calculator using React, with keyboard support and some implicit operations similar to the Windows calculator.

How to use

  • Press the buttons on the page to add, subtract, multiply, or divide non-negative whole numbers (e.g. 15 + 20 =)
  • You can also use your keyboard to enter numbers, operators, compute (press equals or enter), or backspace to undo the last number
  • Similar to the Windows calculator, if you press the equals button multiple times in a row, the same operation with the second operand will be repeated. If you press an operation without specifying the second operand, the current total will be assumed to be the second operand.

Built With

Running This App

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

About

A simple four-function calculator using React

License:MIT License


Languages

Language:JavaScript 85.5%Language:HTML 10.8%Language:CSS 3.7%