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 1626ef5 commit a12ba3aCopy full SHA for a12ba3a
lesson_06/expression/src/expression_calculator.ts
@@ -7,11 +7,11 @@ export class ExpressionCalculator {
7
// Caculate addition with an add function '(a + b)'
8
const originalSum = you.add(a,b);
9
// caculate multiplication '(add * c)' and 'd^e' so d * (e times)
10
- const multiply = you.multiply(originalSum, c)
+ const SumMultiply = you.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 lastOne = you.divide(multiply, d^e)
13
-
14
- return 0;
+ const FinalResult = you.divide(SumMultiply, d ^ e);
+
+ return FinalResult;
15
}
16
17
add(x: number , y: number){
0 commit comments