Created
January 28, 2018 15:33
-
-
Save chathurangat/0411b5ae09298a510830408390e31d1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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