AwesomenessXP / calculator

still practicing javascript lol

Home Page:https://awesomenessxp.github.io/calculator/

Repository from Github https://github.comAwesomenessXP/calculatorRepository from Github https://github.comAwesomenessXP/calculator

Calculator

  • Still practicing JavaScript by making a calculator.

Challenges

Creating all the buttons in JS + styling

  • styled the number pad by row from 0-9
  • some exceptions required using the column ID's to style columns
  • only used one event listener, set conditions to get the exact key id for easy access to button

Concatenating numbers on screen and do multiple operations

  • used screen.textContent = screen.textContent + num; to add previous text to current text
  • pushed new digits into array, then used .join('') to save array in calcTwoNums.secondNum as a string

Features to implement

  • add backspace button (make CE button functional)
  • add decimal button (make decimal button functional)

About

still practicing javascript lol

https://awesomenessxp.github.io/calculator/

License:MIT License


Languages

Language:JavaScript 76.2%Language:CSS 15.5%Language:HTML 8.3%