Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

🖩 JavaScript Calculator

A clean, web-based calculator built with vanilla HTML, CSS, and JavaScript — no frameworks, no dependencies.


✨ Features

  • Standard arithmetic: addition, subtraction, multiplication, division
  • Percentage (%) and sign-toggle (±) operations
  • Keyboard input support
  • Chained calculations
  • Responsive layout

🖥️ Tech Stack

Category Technology
Markup HTML5
Styling CSS3
Logic Vanilla JavaScript

🚀 Getting Started

Open index.html in any browser — no build step needed.

open index.html

📁 Project Structure

calculator/
├── index.html   # Calculator layout
├── style.css    # Styling and button grid
└── cal.js       # Calculation logic and event handlers

📝 What I Learned

  • Building grid-based layouts with CSS
  • Event-driven programming in JavaScript
  • Managing calculator state (current input, operator, result)
  • Handling edge cases: division by zero, chained operators

Made with ❤️ as part of a learning journey