Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.3 KB

File metadata and controls

65 lines (41 loc) · 1.3 KB

🧮 Calculator Web App

👉 Live Demo: https://quanta1910.github.io/CodeAlpha_Calculator/

A simple and responsive calculator built using HTML, CSS, and JavaScript. This project performs basic arithmetic operations with a clean and user-friendly interface.


🚀 Features

  • Basic operations: Addition (+), Subtraction (-), Multiplication (*), Division (/)
  • Clear button (C) to reset input
  • Decimal support
  • Responsive layout using CSS Grid
  • Error handling for invalid expressions

🛠️ Tech Stack

  • HTML5
  • CSS3 (Grid Layout)
  • JavaScript (DOM Manipulation)

📂 Project Overview

This is a front-end based calculator that:

  • Takes user input through buttons
  • Displays input and output in a screen area
  • Evaluates expressions dynamically using JavaScript

⚙️ How It Works

  1. User clicks on buttons to enter numbers/operators
  2. Input gets displayed on the screen
  3. On clicking =, the expression is evaluated
  4. If expression is invalid → shows "Error"
  5. C button clears the screen

📌 Future Improvements

  • Keyboard input support
  • Scientific calculator features
  • Better UI animations
  • Replace eval() with safer logic

👨‍💻 Author

Dhruv Gupta


⭐ Show Your Support

If you like this project, give it a ⭐ on GitHub!