/calculator

A Freecodecamp project using React framework

Primary LanguageJavaScript

calculator

A freecodecamp project

General Requirements:

  • Using a frontend framework React

  • Buttons: zero, one, two, … nine, add, subtract, multiply, divide, decimal point, clear

  • Display: space to show the input, space to show the output

Specific requirements:

  • Consecutive operators: If 2 and more operators are entered consecutively, the operation performed should be the last operator entered
  • Execution logic: * and / are performed before + and -