Skip to content

Commit

Permalink
fix: swapped 'add' and 'multiply' return statement;
Browse files Browse the repository at this point in the history
  • Loading branch information
“A1-4U2T1NN” committed Oct 9, 2024
1 parent c12e9fd commit f3dd6da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lesson_06/expression/src/expression_calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export class ExpressionCalculator {

add(Augend: number, Addend: number,): number {
/* defines value of Augend and Addend; defines their return value*/
return Augend * Addend;
return Augend + Addend;
/* defines the function 'add'*/
}
multiply(Multiplicand: number, Multiplier: number): number {
/* defines value of Multiplicand and Multiplier; defines their return value*/
return Multiplicand + Multiplier;
return Multiplicand * Multiplier;
/* defines the function 'multiply'*/
}
divide(Dividend: number, Divisor: number): number {
Expand Down

0 comments on commit f3dd6da

Please sign in to comment.