From db31cf133b50fa470c762a4d71d52fc53a781a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CA1-4U2T1NN=E2=80=9D?= <“a1.austinn19@gmail.com”> Date: Sat, 12 Oct 2024 03:08:39 +0000 Subject: [PATCH] fix: converted ProperCase to lowerCamelCase; --- lesson_06/expression/src/expression_calculator.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lesson_06/expression/src/expression_calculator.ts b/lesson_06/expression/src/expression_calculator.ts index 7673b77f7..29d93452e 100644 --- a/lesson_06/expression/src/expression_calculator.ts +++ b/lesson_06/expression/src/expression_calculator.ts @@ -2,17 +2,17 @@ export class ExpressionCalculator { /** Returns the calculation of ((a + b) * c) / d^e */ calculate(a: number, b: number, c: number, d: number, e: number): number { // Implement your code here to return the correct value. - const Sum = this.add(a, b) + const sum = this.add(a, b) /* First step of PEMDAS in equation (Parenthesis)*/ - const Product = this.multiply(Sum, c) + const product = this.multiply(Sum, c) /* Second step of PEMDAS in equation (Parenthesis)*/ - const Power = Math.pow(d, e) + const power = Math.pow(d, e) /* Third step of PEMDAS in equation (Exponent)*/ - const Quotient = this.divide(Product, Power) + const quotient = this.divide(Product, Power) /* Fourth and final step of PEMDAS in equation [Multiplication/Division(left to right)]*/ - const Result = Quotient + const result = quotient /* Defines final result */ - return Result; + return result; /* prints final result*/ }