Practice for getting moments of time in JavaScript

Задание 1

Determine how many seconds have passed from the beginning of the day to the present time.

Задание 2

Determine how many seconds are left until the end of the day.

Задание 3

Determine how many days are left until the new year.

Задание 4

Determine how many Fridays are 13th in the current year.

Задание 5

Determine what year was 3 months ago.

Задание 6

Determine which day of the week will be the last day of the current month.

Задание 7

Write code to determine if the current year is a leap year.

Задание 8

Write code to find the previous leap year.

Задание 9

Write code to find the next leap year.