Merge pull request #3167 from 0xEddie/master

Clarify instructions of `read` method
This commit is contained in:
Ilya Kantor 2022-09-20 13:48:43 +02:00 committed by GitHub
commit 588e213f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.