vanillaJS-calculator

Simple calculator web app with four operations (addition, subtraction, multiple, division)

  • Using skill: javascript, (html, css)
  • Algorithm:
  1. using flag which can show an operation where is located before button you chose. If falg is false, it means that the operation is located in front of button you clicked. If flag is true, it means that the number is located in front of button you clicked.
  2. So I devided a numeric expression by the operation.