Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧮 Calculator Web App

A simple and responsive calculator built using HTML, CSS, and JavaScript. This project performs basic arithmetic operations and is designed to help beginners understand DOM manipulation and event handling in JavaScript.


🚀 Features

  • ➕ Addition
  • ➖ Subtraction
  • ✖️ Multiplication
  • ➗ Division
  • 🟰 Real-time calculation using button inputs
  • 🧹 Clear and reset functionality
  • 📱 User-friendly interface

🛠️ Technologies Used

  • HTML – Structure
  • CSS – Styling and layout
  • JavaScript – Logic and functionality

📂 Project Structure

calculator/
│
├── index.html      # Main HTML file
├── style.css       # Styling
├── script.js       # Calculator logic
└── README.md       # Project documentation

⚙️ How It Works

  • Button clicks are captured using event listeners
  • User input is stored as a string
  • The eval() function is used to evaluate the expression
  • The result is displayed in the input box

▶️ How to Run the Project

  1. Clone the repository

    git clone https://github.com/your-username/calculator.git
  2. Open index.html in your browser

  3. Start calculating 🎉


📌 Future Improvements

  • Add keyboard support
  • Improve UI/UX
  • Replace eval() with a safer custom logic
  • Add scientific calculator features

🤝 Contributing

Contributions are welcome! Feel free to fork the repository and submit a pull request.


📜 License

This project is open-source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages