From f6dc8c5199e1ca95f8cd89f00a45eec4a6f9a02e Mon Sep 17 00:00:00 2001 From: paul-fracture Date: Fri, 4 Apr 2025 18:55:39 -0500 Subject: [PATCH] Update calculator.js --- examples/calculator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/calculator.js b/examples/calculator.js index b9f6cca..74a7f4e 100644 --- a/examples/calculator.js +++ b/examples/calculator.js @@ -41,7 +41,7 @@ class Calculator { } // Poor variable naming and lacks clarity - calc(x, y, z) { + calc(x, y, z) { if (z == '+') return this.add(x, y); if (z == '-') return this.subtract(x, y); if (z == '*') return this.multiply(x, y); @@ -51,4 +51,4 @@ class Calculator { } } -module.exports = Calculator; \ No newline at end of file +module.exports = Calculator;