Skip to content

syedbarkath980/CALCULATOR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Calculator โ€“ HTML, CSS & JavaScript

A simple and clean calculator web application built using HTML, CSS, and Vanilla JavaScript.
This project helps practice DOM manipulation, event handling, and basic application logic.

This is one of my beginner front-end projects as part of my learning journey.


โœจ Features

  • Perform basic arithmetic operations
    • Addition
    • Subtraction
    • Multiplication
    • Division
  • Click-based number and operator input
  • Clean and minimal UI
  • Responsive layout for small screens
  • Real-time display update while entering values

๐Ÿ› ๏ธ Technologies Used

  • HTML
  • CSS
  • JavaScript (Vanilla JS)

๐Ÿง  How It Works (Logic Overview)

  • Number buttons build the current number as a string.
  • Operator buttons store the selected operator.
  • When the equal button is clicked:
    • The stored numbers are converted into numbers.
    • The selected operation is applied.
    • The result is shown in the input display.
  • After one calculation, the next number starts fresh.

๐Ÿš€ Improvements Planned

  • Keyboard input support
  • Proper decimal number handling
  • Clear / reset button
  • Better validation (prevent multiple operators or invalid inputs)
  • Continuous calculations without refreshing

๐ŸŽฏ Learning Outcome

Through this project, I practiced:

  • DOM selection and events
  • Conditional logic
  • Managing application state using variables
  • Building a small interactive UI using JavaScript

๐Ÿ‘ค Author

Syed Barkath Ali

About

Build Calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors