Giter VIP home page Giter VIP logo

calculator_with_vanillajs's Introduction





며칠전 CSS Grid 기능에 대해서 공부했다.

공부를 하면서 Grid 기능을 이용하여 계산기를 만들면

요소들을 배치할 때 편리할 것 같다는 생각이 들었다.

그래서 복습할겸 프로그래밍 연습도 할겸 계산기를 만들어 봤다.







Calculator with VanillaJS


  • container 요소 안에 grid 기능을 이용해 버튼들을 배치했다.

  • ÷ , × , - , + 버튼을 이용해 기본적인 사칙연산이 가능하다.

  • ' = ' 버튼을 누르지 않고 사칙연산 버튼만을 누름으로써 사칙연산이 가능하다.

  • ' . ' 버튼으로 소수점 표현 및 계산이 가능하다.

  • ' + / - ' 버튼으로 음수 표현 및 계산이 가능하다.

  • ' C ' 버튼으로 입력된 값들을 초기화 시켜줄 수 있다.

  • backspace 버튼이 있어 입력값을 수정할 수 있다.






The four fundamental arithmetic operations


  • ÷ , × , - , + 버튼을 이용해 기본적인 사칙연산이 가능하다.

  • ' ÷ ' 연산

Calculrator.-.divide.mp4


  • ' × ' 연산

Calculrator.-.multi.mp4


  • ' - ' 연산

Calculrator.-.minus.mp4


  • ' + ' 연산

Calculrator.-.plus.mp4




Continuous calculation


  • ' = ' 버튼을 누르지 않고 사칙연산 버튼만을 누름으로써 사칙연산이 가능하다.

Calculrator.-.continuation.mp4




Decimal units calculation


  • ' . ' 버튼으로 소수점 표현 및 계산이 가능하다.

Calculrator.-.dot.mp4




Negative number calculation


  • ' + / - ' 버튼으로 음수 표현 및 계산이 가능하다.

Calculrator.-.negative.mp4




Cancel and Backspace


  • ' C ' 버튼으로 입력된 값들을 초기화 시켜줄 수 있다.

  • backspace 버튼이 있어 입력값을 수정할 수 있다.


Calculrator.-.cancel.and.backspace.mp4



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.