Skip to content

r1derPUSH/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧮 Simple Calculator

A basic calculator built with plain JavaScript and DOM manipulation. Supports fundamental arithmetic operations: ➕ addition, ➖ subtraction, ✖️ multiplication, ➗ division, and 💯 percentage calculation.

🌐 Live Website:

👉 https://r1derpush.github.io/calculator/

alt text

⚙️ Features

🔢 Input digits (0–9) and decimal point .

➕ ➖ ✖️ ➗ % — Arithmetic operations

🧼 Clear — Resets the display and all internal values

❌ Delete — Intended to remove the last character (currently not fully implemented)

✅ Equals (=) — Computes the result

🔁 Supports sequential input of numbers and operations

🧠 How it works

Pressing a number button ➡️ appends the digit to the display.

Pressing an operation button ➕➖✖️➗📉 saves the current number into a variable and clears the display for the next input.

Pressing = ➡️ calculates the result based on the selected operation.

Clear button 🧼 resets all internal states and display.

About

Simple Calculator — built with Pure JavaScript, no libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published