Merge pull request #3167 from 0xEddie/master
Clarify instructions of `read` method
This commit is contained in:
commit
588e213f3c
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ importance: 5
|
|||
|
||||
Create a constructor function `Calculator` that creates objects with 3 methods:
|
||||
|
||||
- `read()` asks for two values using `prompt` and remembers them in object properties.
|
||||
- `read()` prompts for two values and saves them as object properties with names `a` and `b` respectively.
|
||||
- `sum()` returns the sum of these properties.
|
||||
- `mul()` returns the multiplication product of these properties.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue