Update task.md

This commit is contained in:
Eddie 2022-08-28 16:07:53 -06:00 committed by GitHub
parent c11e773e70
commit e09ea79a3b
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: Create a constructor function `Calculator` that creates objects with 3 methods:
- `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.
- `sum()` returns the sum of these properties. - `sum()` returns the sum of these properties.
- `mul()` returns the multiplication product of these properties. - `mul()` returns the multiplication product of these properties.