Skip to content

NagievR/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator using React and Context API

Try it

https://nagievr.github.io/Calculator/

Description

The reason why I didnt use any state manager is simple - I wanted to practice only with React and its capabilities.
The calculator understands the priority of operators. It means the following:
        2 + 2 * 2 = 6,  not 8
    2 + 2 * 2 * 2 = 10, not 16
"*", "/" has bigger priority than "-", "+"

Journal

The journal displays the history of calculations and full current expression.

Keyboard Shortcuts

Shortcut Description

f
toggle journal
Delete
Esc
clear all
← Backspace remove a symbol
Shift negative number

About

Priority calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published