Update tomorrow.md

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-07 21:18:32 +03:00
committed by GitHub
parent 1fbbf52a4d
commit 46c0906262

View File

@ -10,9 +10,9 @@ Results in a string representation of tomorrow's date.
```js
const tomorrow = () => {
let t = new Date();
t.setDate(t.getDate() + 1);
return t.toISOString().split('T')[0];
let d = new Date();
d.setDate(d.getDate() + 1);
return d.toISOString().split('T')[0];
};
```