Giter VIP home page Giter VIP logo

calculator-javascript's Introduction

calculator-javascript

Table of contents

Overview

Screenshot

Links

Features

  • Basic arithmetic operations (addition, subtraction, multiplication, division)
  • Switch between 3 different themes
  • History of the last 5 calculations
  • Responsive design

My process

Built with

  • Semantic HTML5 markup
  • SCSS
  • JavaScript
  • Webpack

Implementation

This is a vanilla JavaScript calculator app that allows users to switch between 3 nice-looking themes, provides basic arithmetic operations, and provides the ability to see a history of the last 5 calculations performed. The app is written in an MV* variation architecture, implements a PubSub class to manage communication of data from the Model to the listening views whenever the state changes. A HistoryManager class is also included to handle the history logic of the performed calculations and is separated from the Model class for better separation of concerns.

Continued development

In future developments, I would like to add more complex operations and advanced functionalities to the calculator, such as the ability to calculate percentages, square roots, and exponents.

Useful resources

Author

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.