Skip to content

Commit

Permalink
fix: fixed more case errors;
Browse files Browse the repository at this point in the history
  • Loading branch information
“A1-4U2T1NN” committed Oct 12, 2024
1 parent db31cf1 commit f5d06a1
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 @@ -4,11 +4,11 @@ export class ExpressionCalculator {
// Implement your code here to return the correct value.
const sum = this.add(a, b)
/* First step of PEMDAS in equation (Parenthesis)*/
const product = this.multiply(Sum, c)
const product = this.multiply(sum, c)
/* Second step of PEMDAS in equation (Parenthesis)*/
const power = Math.pow(d, e)
/* Third step of PEMDAS in equation (Exponent)*/
const quotient = this.divide(Product, Power)
const quotient = this.divide(product, power)
/* Fourth and final step of PEMDAS in equation [Multiplication/Division(left to right)]*/
const result = quotient
/* Defines final result */
Expand Down

0 comments on commit f5d06a1

Please sign in to comment.