Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Calculator App

A clean, responsive calculator built with HTML, CSS, and vanilla JavaScript.

Live Demo

View Live

Features

  • Basic operations — addition, subtraction, multiplication, division, modulus
  • Decimal support
  • Chained calculations (e.g. 5 + 3 × 2)
  • Keyboard support (type numbers and operators directly)
  • Backspace key to delete last digit
  • Error handling for division by zero
  • Responsive design

Keyboard Shortcuts

Key Action
0–9 Number input
+ - * / Operators
Enter or = Calculate
Backspace Delete last digit
Escape Clear all

Tech Stack

  • HTML5
  • CSS3 (Grid layout, CSS transitions)
  • Vanilla JavaScript (DOM manipulation, event listeners)

What I Learned

  • DOM manipulation with querySelector and querySelectorAll
  • Handling user events with addEventListener
  • Managing application state with variables
  • Keyboard event handling with keydown
  • Floating point precision with toFixed()

How to Run Locally

  1. Clone the repo
    git clone https://github.com/sumiran3031/calculator.git
  2. Open index.html in your browser — no setup needed!

Made by Sumiran Paparkar

Releases

Packages

Contributors

Languages