diff --git a/index.html b/index.html index 872b92e..926c60a 100644 --- a/index.html +++ b/index.html @@ -67,7 +67,7 @@

What not to do?

diff --git a/script.js b/script.js index 76dbe2b..c1b6875 100644 --- a/script.js +++ b/script.js @@ -1,3 +1,3 @@ -const yearElement = document.querySelector('[data-js="year"]'); -const year = new Date().getFullYear(); -yearElement.textContent = year; +const dateElement = document.querySelector('[data-js="date"]'); +const date = new Date().toLocaleDateString("en-US"); +dateElement.textContent = date;