We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c11e773 commit e09ea79Copy full SHA for e09ea79
1-js/04-object-basics/06-constructor-new/2-calculator-constructor/task.md
@@ -6,7 +6,7 @@ importance: 5
6
7
Create a constructor function `Calculator` that creates objects with 3 methods:
8
9
-- `read()` asks for two values using `prompt` and stores each of them in a unique object property.
+- `read()` prompts for two values and saves them as object properties with names `a` and `b` respectively.
10
- `sum()` returns the sum of these properties.
11
- `mul()` returns the multiplication product of these properties.
12
0 commit comments