abongsjoel / tj-calculator

A simple calculator built with plain HTML5, CSS3, and JavaScript. The calculator contains functions for all of the basic math operators we typically find on simple calculators.

Home Page:https://abongsjoel.github.io/tj-calculator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TJ Calculator

In this project I built a simple calculator using plain HTML, CSS and JavaScript.

screenshot

In this project, i used plain HTML5, CSS3 and JavaScript to build a basic calculator. I started by creating functions for the basic math operators. I then created an operate function that takes an operator and 2 numbers and then calls one of the operators. I also created buttons for each digit, each of the functions and the "Equals" key as well as a display for the calculator. Then i created the functions that populate the display and make the calculator work.

The calculator contains functions for all of the basic math operators we typically find on simple calculators. Users can string together several operations and get the right answer, with each pair of numbers being evaluated at a time. Numbers with long decimals are rounded so that they dont overflow the screen.

Live Demo

Built With

  • HTML
  • CSS
  • JavaScript

Author

👤 Chi A. Joel

Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Acknowledgments

Show your support

Give a ⭐️ if you like this project!

License

This project is MIT licensed.

About

A simple calculator built with plain HTML5, CSS3, and JavaScript. The calculator contains functions for all of the basic math operators we typically find on simple calculators.

https://abongsjoel.github.io/tj-calculator/

License:MIT License


Languages

Language:JavaScript 58.7%Language:CSS 20.8%Language:HTML 20.5%