From 6407b798c4e61d5bd13e9905f633147a545efad2 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Mon, 4 Dec 2023 07:52:47 +0200 Subject: [PATCH] store the time --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9e58a6d..343fb44 100644 --- a/index.js +++ b/index.js @@ -4,6 +4,7 @@ function nameSubmit() { const studData = { name: sName, id: sId, + startTime: Date.now(), }; localStorage.setItem(studData, JSON.stringify(studData)); }