Skip to content

Commit

Permalink
8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulyana0505 committed Oct 9, 2023
1 parent 79849fa commit 84736ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,12 @@ userDataArr.reverse();
let day = new Date(userDataArr.join("-"));
console.log(day.getDay());
// 8.2

let today = new Date();
let todayHours = +today.getHours();
let minInHours = todayHours * 60;
let todayMin = +today.getMinutes();
const todayAllMin = minInHours + todayMin;
console.log("С начала сегодняшенего дня прошло: " + todayAllMin + " минут.");
// 8.3

// HW 9
Expand Down

0 comments on commit 84736ab

Please sign in to comment.