We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db31cf1 commit f5d06a1Copy full SHA for f5d06a1
lesson_06/expression/src/expression_calculator.ts
@@ -4,11 +4,11 @@ export class ExpressionCalculator {
4
// Implement your code here to return the correct value.
5
const sum = this.add(a, b)
6
/* First step of PEMDAS in equation (Parenthesis)*/
7
- const product = this.multiply(Sum, c)
+ const product = this.multiply(sum, c)
8
/* Second step of PEMDAS in equation (Parenthesis)*/
9
const power = Math.pow(d, e)
10
/* Third step of PEMDAS in equation (Exponent)*/
11
- const quotient = this.divide(Product, Power)
+ const quotient = this.divide(product, power)
12
/* Fourth and final step of PEMDAS in equation [Multiplication/Division(left to right)]*/
13
const result = quotient
14
/* Defines final result */
0 commit comments