From d66987b66b244cec66827afaa20f4c077cb1e357 Mon Sep 17 00:00:00 2001 From: zyqunix <117040076+zyqunix@users.noreply.github.com> Date: Fri, 6 Jun 2025 00:55:23 +0200 Subject: [PATCH] Update index.js --- assets/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/index.js b/assets/js/index.js index f203e42..0291b43 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -28,7 +28,7 @@ const updateAge = () => { const now = new Date(); const diff = now.getTime() - birthday.getTime(); age = diff / (1000 * 60 * 60 * 24 * 365.25); - ageElem.innerHTML = `${age.toFixed(2)} years old`; + ageElem.innerHTML = `${age} years old`; } updateAge();