Skip to content

Commit f5d06a1

Browse files
author
“A1-4U2T1NN”
committed
fix: fixed more case errors;
1 parent db31cf1 commit f5d06a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lesson_06/expression/src/expression_calculator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ export class ExpressionCalculator {
44
// Implement your code here to return the correct value.
55
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)*/
99
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)]*/
1313
const result = quotient
1414
/* Defines final result */

0 commit comments

Comments
 (0)