Skip to content

harsh98trivedi/Simple-JavaScript-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple JavaScript Calculator

Simple Javascript Calculator

A simple JavaScript Calculator made by Harsh Trivedi.

Overview

The Simple JavaScript Calculator is a straightforward web-based calculator built using JavaScript. It provides basic arithmetic operations to help users perform calculations quickly and efficiently.

Usage

You can access the Simple JavaScript Calculator by visiting the following link: Simple JavaScript Calculator

Simply enter your mathematical expressions and use the calculator's features to perform calculations with ease.

Screenshot

What Makes This Calculator Special?

  • It does math (obviously) – basic stuff like +, −, ×, ÷, %, and advanced moves like √, x², and x^y.
  • Looks good while doing it – buttery-smooth buttons, subtle hover effects, and gradients that actually make sense.
  • Dark Mode – because math at night shouldn’t hurt your eyes.
  • History Tracking – remembers your last 50 calculations, because everyone forgets the answer sometimes.
  • Keyboard Friendly – type numbers and operations directly. Bonus points for shortcut keys:
    • D → Toggle dark/light mode
    • H → Open/close history
    • C → Clear screen
    • S → Start a square root

How to Use (aka “Press Stuff and Profit”)

  1. Click buttons or type numbers and operators.
  2. Press = or Enter to see magic happen.
  3. Press C to erase your mistakes (we all have them).
  4. Press to backspace like a pro.
  5. Use the purple buttons for fancy operations like powers and square roots.
  6. Toggle dark mode if your eyes demand it.
  7. Open history to relive your glory or shame.

Built With

  • HTML5 – the bones
  • CSS3 + TailwindCSS – the bling
  • JavaScript – the brains
  • FontAwesome – the tiny icons that make big impressions

Contributors

Contributors are always welcome to make contributions to this project and help improve it. If you'd like to contribute or work on available issues, feel free to do so. Let's collaborate and make this calculator even better!

Happy Coding!

We hope you find this Simple JavaScript Calculator useful and enjoy using it for your calculations. If you have any questions or suggestions, please don't hesitate to reach out to Harsh Trivedi.

Happy coding!