Skip to content

Commit e962984

Browse files
committed
fix:lesson_06 change variable names
1 parent 2a566f3 commit e962984

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lesson_06/expression/src/expression_calculator.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ export class ExpressionCalculator {
33
calculate(a: number, b: number, c: number, d: number, e: number): number {
44
// Implement your code here to return the correct value.
55

6-
const ab = this.add(a, b);
7-
const abc = this.multiply(ab, c);
8-
const de = this.pow(d, e);
9-
const answer = this.divide(abc, de);
10-
return answer;
6+
const add = this.add(a, b);
7+
const multiply = this.multiply(add, c);
8+
const pow = this.pow(d, e);
9+
const divide = this.divide(multiply, pow);
10+
return divide;
1111
}
1212

1313
add(a: number, b: number): number {

0 commit comments

Comments
 (0)