Clarify instructions of read method

This commit is contained in:
Eddie 2022-08-28 10:54:03 -06:00 committed by GitHub
parent 53b35c1683
commit c11e773e70
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()` asks for two values using `prompt` and stores each of them in a unique object property.
- `sum()` returns the sum of these properties.
- `mul()` returns the multiplication product of these properties.