Skip to content

Commit e09ea79

Browse files
authored
Update task.md
1 parent c11e773 commit e09ea79

File tree

1 file changed

+1
-1
lines changed
  • 1-js/04-object-basics/06-constructor-new/2-calculator-constructor

1 file changed

+1
-1
lines changed

1-js/04-object-basics/06-constructor-new/2-calculator-constructor/task.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ importance: 5
66

77
Create a constructor function `Calculator` that creates objects with 3 methods:
88

9-
- `read()` asks for two values using `prompt` and stores each of them in a unique object property.
9+
- `read()` prompts for two values and saves them as object properties with names `a` and `b` respectively.
1010
- `sum()` returns the sum of these properties.
1111
- `mul()` returns the multiplication product of these properties.
1212

0 commit comments

Comments
 (0)