Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 766 Bytes

File metadata and controls

37 lines (23 loc) · 766 Bytes

JavaScript Calculator

This project is a simple and responsive calculator built using HTML, CSS, and JavaScript.
It performs basic arithmetic operations such as addition, subtraction, multiplication, and division.

Features

  • Clean and responsive UI
  • Supports decimal numbers
  • AC (clear all), DEL (delete last digit), and equals functionality
  • Real-time display update
  • Number formatting for better readability

Technologies Used

  • HTML5
  • CSS3 (Grid Layout)
  • Vanilla JavaScript (OOP structure)

How It Works

The calculator logic is implemented using a Calculator class. It handles:

Appending numbers

Choosing operations

Computing results

Display formatting

Updating the DOM dynamically

License

This project is free to use and modify.