Pavel_16,
приветствие
let userName = document.getElementById('new_name').value;
localStorage.setItem("userName", userName)
игра
let time = document.getElementById('play_timer').innerHTML;
;
localStorage.setItem("time ", time)
рекорды
if (localStorage.getItem("users") === null) {
$.getJSON('Storage/users.json', function(users) {
localStorage.setItem("users", JSON.stringify(users));
});
}
let users = localStorage.getItem("users");
let userName = localStorage.getItem("userName");
let time = localStorage.getItem("userName");
users.push({userName, time});