Skip to content

Commit

Permalink
fix:lesson_06 change variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
txtran224 committed Oct 9, 2024
1 parent 2a566f3 commit e962984
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lesson_06/expression/src/expression_calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ export class ExpressionCalculator {
calculate(a: number, b: number, c: number, d: number, e: number): number {
// Implement your code here to return the correct value.

const ab = this.add(a, b);
const abc = this.multiply(ab, c);
const de = this.pow(d, e);
const answer = this.divide(abc, de);
return answer;
const add = this.add(a, b);
const multiply = this.multiply(add, c);
const pow = this.pow(d, e);
const divide = this.divide(multiply, pow);
return divide;
}

add(a: number, b: number): number {
Expand Down

0 comments on commit e962984

Please sign in to comment.