Skip to content

About

A simple calculator built using HTML, CSS, and JavaScript

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Calculator

A simple calculator built using HTML, CSS, and Vanilla JavaScript to perform basic arithmetic operations.
This project was created to practice core JavaScript concepts like DOM manipulation, event handling, and error handling.

Features

  • Basic arithmetic operations: + , - , * , / , %
  • Real-time input display
  • Backspace functionality (delete last input)
  • Clear button to reset the calculator
  • Error handling for empty or invalid expressions

Tech Stack

  • HTML
  • CSS
  • JavaScript (ES6)

What I Learned

  • Handling button clicks using event listeners
  • Building expressions using strings
  • Using try...catch for error handling
  • Implementing backspace and clear logic
  • Understanding how calculators evaluate expressions

About

A simple calculator built using HTML, CSS, and JavaScript

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages