Last active
February 6, 2024 12:50
-
-
Save bitsmuggler/9e5b411bca2ec301a3ef4d2c6a95c2e3 to your computer and use it in GitHub Desktop.
calculator
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
const calculator = { | |
read(a, b) { | |
this.a = a; | |
this.b = b; | |
}, | |
sum() { | |
return this.a + this.b; | |
}, | |
mul() { | |
return this.a * this.b; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment