From 46c090626273fedd07f718382f0bf0f1def3cd6b Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Wed, 7 Oct 2020 21:18:32 +0300 Subject: [PATCH] Update tomorrow.md --- snippets/tomorrow.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snippets/tomorrow.md b/snippets/tomorrow.md index 8d80e2cdd..9fe745c32 100644 --- a/snippets/tomorrow.md +++ b/snippets/tomorrow.md @@ -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]; }; ```