Skip to content

Commit c12e9fd

Browse files
author
“A1-4U2T1NN”
committed
fix: updated 'let' to 'commit'
1 parent 6c35e4a commit c12e9fd

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
@@ -2,15 +2,15 @@ export class ExpressionCalculator {
22
/** Returns the calculation of ((a + b) * c) / d^e */
33
calculate(a: number, b: number, c: number, d: number, e: number): number {
44
// Implement your code here to return the correct value.
5-
let Sum = this.add(a, b)
5+
const Sum = this.add(a, b)
66
/* First step of PEMDAS in equation (Parenthesis)*/
7-
let Product = this.multiply(Sum, c)
7+
const Product = this.multiply(Sum, c)
88
/* Second step of PEMDAS in equation (Parenthesis)*/
9-
let Power = Math.pow(d, e)
9+
const Power = Math.pow(d, e)
1010
/* Third step of PEMDAS in equation (Exponent)*/
11-
let Quotient = this.divide(Product, Power)
11+
const Quotient = this.divide(Product, Power)
1212
/* Fourth and final step of PEMDAS in equation [Multiplication/Division(left to right)]*/
13-
let Result = Quotient
13+
const Result = Quotient
1414
/* Defines final result */
1515
return Result;
1616
/* prints final result*/

0 commit comments

Comments
 (0)