From 10cd918e1fce43fa58285690d5b350ea01a4f974 Mon Sep 17 00:00:00 2001 From: "Anthony D. Mays" Date: Tue, 8 Oct 2024 21:51:23 -0700 Subject: [PATCH] Revert "feat: adds Pablo's Lesson06 expression calculator (#252)" (#255) This reverts commit 8518c24b4ae5d91dc586fce733a278a347a3df55. --- .../expression/src/expression_calculator.ts | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/lesson_06/expression/src/expression_calculator.ts b/lesson_06/expression/src/expression_calculator.ts index 26a508b3..13cb2ca0 100644 --- a/lesson_06/expression/src/expression_calculator.ts +++ b/lesson_06/expression/src/expression_calculator.ts @@ -1,23 +1,10 @@ export class ExpressionCalculator { /** Returns the calculation of ((a + b) * c) / d^e */ calculate(a: number, b: number, c: number, d: number, e: number): number { - const addition = this.add(a, b); - const multi = this.multiply(addition, c); - const exponent = this.pow(d, e); - const division = this.divide(multi, exponent); - const mytotal = division; - return mytotal; - } - // Implement your code here to return the correct value. - add(a: number, b: number): number { - return a + b; - } - multiply(a: number, b: number): number { - return a * b; - } - divide(a: number, b: number): number { - return a / b; + // Implement your code here to return the correct value. + return 0; } + pow(base: number, exponent: number): number { return Math.pow(base, exponent); }