Skip to content

Commit db31cf1

Browse files
author
“A1-4U2T1NN”
committed
fix: converted ProperCase to lowerCamelCase;
1 parent f3dd6da commit db31cf1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lesson_06/expression/src/expression_calculator.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ export class ExpressionCalculator {
22
/** Returns the calculation of ((a + b) * c) / d^e */
33
calculate(a: number, b: number, c: number, d: number, e: number): number {
44
// Implement your code here to return the correct value.
5-
const Sum = this.add(a, b)
5+
const sum = this.add(a, b)
66
/* First step of PEMDAS in equation (Parenthesis)*/
7-
const Product = this.multiply(Sum, c)
7+
const product = this.multiply(Sum, c)
88
/* Second step of PEMDAS in equation (Parenthesis)*/
9-
const Power = Math.pow(d, e)
9+
const power = Math.pow(d, e)
1010
/* Third step of PEMDAS in equation (Exponent)*/
11-
const Quotient = this.divide(Product, Power)
11+
const quotient = this.divide(Product, Power)
1212
/* Fourth and final step of PEMDAS in equation [Multiplication/Division(left to right)]*/
13-
const Result = Quotient
13+
const result = quotient
1414
/* Defines final result */
15-
return Result;
15+
return result;
1616
/* prints final result*/
1717
}
1818

0 commit comments

Comments
 (0)