Giter Club home page Giter Club logo

odin_calculator's Introduction

Live Link : https://umbelth94.github.io/Odin_Calculator/

Odin_Calculator

Calculator app based on the Odin Project curriculum

In this assignment, I was asked to build a functioning calculator that can do basic arithmetic. The goal was to utilize everything I've learned about Javascript fundamentals up to this point to create a smooth and responsive interface. In the end, I am very proud of this project as I was able to come up with all of the logic myself, even if it the code may not be the most efficient.

Features

  • The calculator does addition, subtraction, multiplication, and division
  • Keyboard support
  • The calculator's display face changes based on what the calculator is doing
  • Hitting enter (or equals) after solving an equation will repeat the equation using the last number that was input
  • The calculator will solve an equation and be ready for a new input when using different operands
  • The number on the display will shrink/grow (to a point) to fit the screen
  • Positive/Negative button
  • Dividing by zero makes the calculator very upset

Lessons Learned

  • First time utilizing Grid in CSS. Who would have thought it would be perfect for setting up and organizing a grid of buttons?
  • First time utilizing button animations/transitions
  • First time using a forEach loop to group a bunch of similar buttons together
  • First time implementing keyboard support.
  • Getting the HTML elements and Javascript to play nice was a journey.
  • Tried my best to not overload the eventlisteners on the buttons and instead refactoring certain checks to seperate functions so that it at least LOOKS less chaotic.

I hope you like it!

odin_calculator's People

Contributors

umbelth94 avatar

Stargazers

 avatar

Watchers

 avatar

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.