We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b8966d commit f6dc8c5Copy full SHA for f6dc8c5
1 file changed
examples/calculator.js
@@ -41,7 +41,7 @@ class Calculator {
41
}
42
43
// Poor variable naming and lacks clarity
44
- calc(x, y, z) {
+ calc(x, y, z) {
45
if (z == '+') return this.add(x, y);
46
if (z == '-') return this.subtract(x, y);
47
if (z == '*') return this.multiply(x, y);
@@ -51,4 +51,4 @@ class Calculator {
51
52
53
54
-module.exports = Calculator;
+module.exports = Calculator;
0 commit comments