Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Created January 28, 2018 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chathurangat/0411b5ae09298a510830408390e31d1f to your computer and use it in GitHub Desktop.
Save chathurangat/0411b5ae09298a510830408390e31d1f to your computer and use it in GitHub Desktop.
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