Given a constructor function ArithmeticOperations in the prefilled code and two numbers firstNumber and secondNumber as inputs, add the following methods to the constructor function using the prototype.
ArithmeticOperations.prototype.add = function(a, b) {
return a + b;
}
Comments
Leave a comment