diff --git a/main.js b/main.js index 0876c30..2a97e88 100644 --- a/main.js +++ b/main.js @@ -153,9 +153,9 @@ let day = new Date(userDataArr.join("-")); console.log(day.getDay()); // 8.2 let today = new Date(); -let todayHours = +today.getHours(); +let todayHours = today.getHours(); let minInHours = todayHours * 60; -let todayMin = +today.getMinutes(); +let todayMin = today.getMinutes(); const todayAllMin = minInHours + todayMin; console.log("С начала сегодняшенего дня прошло: " + todayAllMin + " минут."); // 8.3