diff --git a/1-js/04-object-basics/06-constructor-new/4-calculator-extendable/task.md b/1-js/04-object-basics/06-constructor-new/4-calculator-extendable/task.md index 1f6368c0..cc5453ce 100644 --- a/1-js/04-object-basics/06-constructor-new/4-calculator-extendable/task.md +++ b/1-js/04-object-basics/06-constructor-new/4-calculator-extendable/task.md @@ -17,7 +17,7 @@ The task consists of two parts. alert( calc.calculate("3 + 7") ); // 10 ``` -2. Then add the method `addOperator(name, func)` that teaches the calculator a new operation. It takes the operator `name` and the two-argument function `func(a,b)` that implements it. +2. Then add the method `addMethod(name, func)` that teaches the calculator a new operation. It takes the operator `name` and the two-argument function `func(a,b)` that implements it. For instance, let's add the multiplication `*`, division `/` and power `**`: