Skip to content

Commit 76a596f

Browse files
author
“A1-4U2T1NN”
committed
feat: added math functions; added calculate results;
1 parent ec6133b commit 76a596f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lesson_06/expression/src/expression_calculator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ 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-
let Sum = this.add(a, b)
5+
let Sum = this.add(a, b)
66
/* First step of PEMDAS in equation (Parenthesis)*/
77
let Product = this.multiply(Sum, c)
88
/* Second step of PEMDAS in equation (Parenthesis)*/

0 commit comments

Comments
 (0)