Skip to content

Commit 088bcb8

Browse files
Wayleom Vargas RubioWayleom Vargas Rubio
authored andcommitted
Feat: calculator equation added - Wayleom Vargas
1 parent 615c47c commit 088bcb8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lesson_06/expression/.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
HW_VERSION=your assigned version here
1+
HW_VERSION=E

lesson_06/expression/src/expression_calculator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ export class ExpressionCalculator {
22
/** Returns a calculation involving a, b, c, d, and 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-
return 0;
5+
// Function to implement: Math.pow((a + b) / c, d) * e
6+
return Math.pow((a + b) / c, d) * e;
67
}
78

89
pow(base: number, exponent: number): number {

0 commit comments

Comments
 (0)