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 79c2d79 commit 9c03478Copy full SHA for 9c03478
1-js/05-data-types/05-array-methods/6-calculator-extendable/task.md
@@ -25,9 +25,8 @@ A atividade consiste de duas partes.
25
let multCalc = new Calculator;
26
let divCalc = new Calculator;
27
let powerCalc = new Calculator;
28
-
29
- multCalc.addMethod("*", (a, b) => a * b);
30
- divCalc.addMethod("/", (a, b) => a / b);
+ powerCalc.addMethod("*", (a, b) => a * b);
+ powerCalc.addMethod("/", (a, b) => a / b);
31
powerCalc.addMethod("**", (a, b) => a ** b);
32
33
let result = powerCalc.calculate("2 ** 3");
0 commit comments