Skip to content

StephenC0729/Calculator

Repository files navigation

Calculator Web App

A modern, responsive calculator built with HTML, CSS, and JavaScript featuring a sleek dark theme and intuitive interface.

Features

  • Basic Operations: Addition (+), subtraction (−), multiplication (×), division (÷)
  • Advanced Functions:
    • Percentage calculations (%)
    • Plus/minus toggle (±)
    • Backspace (⌫)
    • All clear (AC)
  • Real-time Expression Display: Shows the complete calculation as you type
  • Error Handling: Division by zero protection
  • Responsive Design: Clean, modern interface with smooth animations

Usage

  1. Open index.html in your web browser
  2. Click number buttons to input values
  3. Use operator buttons for calculations
  4. Press = to evaluate expressions
  5. Use AC to clear everything or to delete last character

File Structure

calculator/
├── index.html      # Main HTML structure
├── style.css       # Styling and layout
└── script.js       # Calculator logic and event handling

Development

To run locally:

  1. Clone the repository
  2. Open index.html in your browser
  3. No build process required - pure vanilla JavaScript

Browser Support

Works in all modern browsers that support ES6+ JavaScript features.

About

Calculator web app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published