/Web-calculator

Simple calculator app made with JavaScript.

Primary LanguageJavaScriptMIT LicenseMIT




installation

You can build it by following command:

yarn
yarn build

Before deploying to your GitHub page, edit predeploy script in package.json and execute:

yarn deploy

Features

  • Operation in order of entry

    • If you input 6 + 3 * 2, it results 18, not 12.
    • Unlike scientific calculator, This executes numbers and operators in order of your input.
    • This is because it copied almost all of features of calculator application in Windows 10.
  • Basic floating-point error mitigation

    • Try 0.1 + 0.2. It results 0.3.
    • Not supported when calculating square root.
  • Nice and cool dark mode

    • Turn on and off dark mode by toggling the button in side menu, and it's cool. 😎

Spec

  • Uses Parcel to bundle, SCSS to styling, and JavaScript ES6+.

Liscence

  • MIT

Feel free to comment!

I appreciate if you guys review the codes or give me pull requests to improve this. 🙏