We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a12ba3a commit 640a788Copy full SHA for 640a788
lesson_06/expression/src/expression_calculator.ts
@@ -5,11 +5,11 @@ export class ExpressionCalculator {
5
6
//PEMDAS order -> expected : //((a + b) * c) / d^e
7
// Caculate addition with an add function '(a + b)'
8
- const originalSum = you.add(a,b);
+ const originalSum = this.add(a,b);
9
// caculate multiplication '(add * c)' and 'd^e' so d * (e times)
10
- const SumMultiply = you.multiply(originalSum, c)
+ const SumMultiply = this.multiply(originalSum, c)
11
// 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);
+ const FinalResult = this.divide(SumMultiply, d ^ e);
13
14
return FinalResult;
15
}
0 commit comments