Exercise 2: Calculator
In this exercise, you have to implement a calculator which can perform addition, subtraction, multiplication, and division.
We'll cover the following...
Problem Statement
A constructor function called Calculator
is given with fields: num1
and num2
. You have to add the following methods to the constructor ...