Skip to content

Commit 640a788

Browse files
author
AmiyahJo
committed
went from 'here'.caculate to 'this'
1 parent a12ba3a commit 640a788

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lesson_06/expression/src/expression_calculator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ export class ExpressionCalculator {
55

66
//PEMDAS order -> expected : //((a + b) * c) / d^e
77
// Caculate addition with an add function '(a + b)'
8-
const originalSum = you.add(a,b);
8+
const originalSum = this.add(a,b);
99
// caculate multiplication '(add * c)' and 'd^e' so d * (e times)
10-
const SumMultiply = you.multiply(originalSum, c)
10+
const SumMultiply = this.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 FinalResult = you.divide(SumMultiply, d ^ e);
12+
const FinalResult = this.divide(SumMultiply, d ^ e);
1313

1414
return FinalResult;
1515
}

0 commit comments

Comments
 (0)