Skip to content

Commit 63b8563

Browse files
authored
12_calculator: Use operator instead of method in the solution (#571)
1 parent 77679bb commit 63b8563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

12_calculator/solution/calculator-solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const multiply = function (array) {
1515
};
1616

1717
const power = function (a, b) {
18-
return Math.pow(a, b);
18+
return a ** b;
1919
};
2020

2121
const factorial = function (n) {

0 commit comments

Comments
 (0)