Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export class Calculator
{
static add(number1, number2)
{
let result = number1 + number2;
console.log(" Add : [" + number1 + "] + [" + number2 + "] is [" + result + "] ");
return result;
}
multiply(number1, number2)
{
let result = number1 * number2;
console.log(" Multiply : [" + number1 + "] x [" + number2 + "] is [" + result + "] ");
return result;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.