Add prototype to descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-20 11:21:07 +03:00
parent 920a0c390b
commit c3a2e47672
26 changed files with 26 additions and 26 deletions

View File

@ -6,7 +6,7 @@ tags: date,intermediate
Calculates the date of `n` days from the given date, returning its string representation.
- Use `new Date()` to create a date object from the first parameter.
- Use `Date.getDate()` and `Date.setDate()` to add `n` days to the given date.
- Use `Date.prototype.getDate()` and `Date.prototype.setDate()` to add `n` days to the given date.
- Use `Date.prototype.toISOString()` to return a string in `yyyy-mm-dd` format.
```js