Skip to content

Commit a12ba3a

Browse files
author
AmiyahJo
committed
variables to calculate
1 parent 1626ef5 commit a12ba3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lesson_06/expression/src/expression_calculator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export class ExpressionCalculator {
77
// Caculate addition with an add function '(a + b)'
88
const originalSum = you.add(a,b);
99
// caculate multiplication '(add * c)' and 'd^e' so d * (e times)
10-
const multiply = you.multiply(originalSum, c)
10+
const SumMultiply = you.multiply(originalSum, c)
1111
// caculate division with divide function which is different variables of the multiplication values '(add * c)' and 'd^e' so d * (e times)
12-
const lastOne = you.divide(multiply, d^e)
13-
14-
return 0;
12+
const FinalResult = you.divide(SumMultiply, d ^ e);
13+
14+
return FinalResult;
1515
}
1616

1717
add(x: number , y: number){

0 commit comments

Comments
 (0)