Skip to content

Commit 84730fb

Browse files
author
AmiyahJo
committed
functions add test..?
1 parent 6e4006c commit 84730fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lesson_06/expression/src/expression_calculator.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ export class ExpressionCalculator {
66
//PEMDAS order -> expected : //((a + b) * c) / d^e
77

88
// Caculate addition with an add function '(a + b)'
9-
9+
function Add(a,b){
10+
let addition = a + b;
11+
};
1012
// caculate multiplication '(add * c)' and 'd^e' so d * (e times)
11-
13+
1214
// caculate division with divide function which is different variables of the multiplication values '(add * c)' and 'd^e' so d * (e times)
1315

1416
return 0;

0 commit comments

Comments
 (0)