Skip to content

Commit f6dc8c5

Browse files
Update calculator.js
1 parent 9b8966d commit f6dc8c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/calculator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Calculator {
4141
}
4242

4343
// Poor variable naming and lacks clarity
44-
calc(x, y, z) {
44+
calc(x, y, z) {
4545
if (z == '+') return this.add(x, y);
4646
if (z == '-') return this.subtract(x, y);
4747
if (z == '*') return this.multiply(x, y);
@@ -51,4 +51,4 @@ class Calculator {
5151
}
5252
}
5353

54-
module.exports = Calculator;
54+
module.exports = Calculator;

0 commit comments

Comments
 (0)