Skip to content

Pure vanilla JavaScript calculator using modern ES6 syntax and classes

License

Notifications You must be signed in to change notification settings

Ramez08/Calculator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

This is a simple calculator web application built with HTML, CSS, and JavaScript. It allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.

Calculator Demo

Features

  • Clear the calculator's display
  • Delete the last character entered
  • Input decimal numbers
  • Perform addition, subtraction, multiplication, and division operations
  • View the previous and current operands
  • Get the computed result

Purpose

This calculator was created as a demonstration of my abilities in tackling a web development project. It showcases my proficiency in HTML, CSS, and JavaScript, as well as my understanding of core concepts such as DOM manipulation, event handling, and object-oriented programming.

Getting Started

To use the calculator locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/ramez08/calculator.git
  1. Open the index.html file in your web browser.

NOTE: If no styling appears, ensure the file is exported and not in a zip file.

Usage

  • Click the number buttons to input digits.
  • Click the operation buttons to select the desired operation.
  • Click the "=" button to compute the result.
  • Click the "AC" button to clear the calculator's display.
  • Click the "DEL" button to delete the last character entered.

Customization

You can customize the calculator's styling by modifying the styling.css file. Adjust the colors, sizes, and layout to match your preferences.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

Pure vanilla JavaScript calculator using modern ES6 syntax and classes

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 52.1%
  • CSS 29.8%
  • HTML 18.1%