Exercise - Create a NodeJS Calculator

NodeJS Calculator

Using node and the NPM package readline-sync create a simple calculator.

  • When the program runs it will show the text "Please enter a number"
  • After the number is entered it will say, "Please enter another number"
  • After the second number is entered show a prompt that says, "Please enter an operator (+, - , / , * )"
  • The user will enter an operator. Once that operator is entered the result of the operation will be printed to the screen.