Skip to content

hrikved03/Simple_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Simple Calculator Web App

A lightweight browser-based calculator built using HTML, CSS, and JavaScript. This project demonstrates basic DOM manipulation, event handling, and dynamic expression evaluation in JavaScript.


๐Ÿš€ Features

  • Basic arithmetic operations (+, โˆ’, ร—, รท)
  • Decimal support
  • Parentheses support for complex expressions
  • Real-time display updates
  • Clear (AC) and Backspace functionality
  • Input validation to prevent invalid expressions
  • Responsive centered UI

๐Ÿ› ๏ธ Technologies Used

  • HTML5 โ€“ Structure of the calculator
  • CSS3 โ€“ Styling and layout
  • JavaScript (Vanilla) โ€“ Logic and calculations

๐Ÿ“ธ Preview

Calculator Preview

click the link to visit the calculator


๐Ÿ“‚ Project Structure

simple-calculator/
โ”‚
โ””โ”€โ”€ index.html   # Main calculator file (HTML + CSS + JS)

โ–ถ๏ธ How to Run

  1. Download or clone the repository

    git clone https://github.com/your-username/simple-calculator.git
  2. Open the project folder

  3. Double-click index.html OR open with Live Server

Thatโ€™s it. No frameworks, no dependencies, no emotional damage.


๐Ÿง  Learning Objectives

This project helps understand:

  • DOM manipulation
  • JavaScript event handling
  • Expression parsing
  • UI design fundamentals
  • Basic input validation

โš ๏ธ Note

The calculator uses JavaScriptโ€™s dynamic function evaluation for computing expressions. While input validation is implemented, this approach should be avoided in production-grade applications.


๐Ÿ“Œ Future Improvements

  • Keyboard input support
  • Dark/light theme toggle
  • Scientific calculator functions
  • Calculation history
  • Improved expression parser (without dynamic evaluation)

๐Ÿ‘จโ€๐Ÿ’ป Author

Hrikved Paul Cybersecurity enthusiast | SOC aspirant


โญ Show Support

If you found this useful, consider giving the repo a โญ.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages