Period Class in OOP in JavaScript

Задание 1

Make a class Period that will find the difference between two moments in time. Let these moments be passed as constructor parameters.

Задание 2

Make a method that returns the difference between moments in seconds.

Задание 3

Make a method that will return the difference between moments in minutes.

Задание 4

Make a method that returns the difference between moments in hours.

Задание 5

Make a method that will return the difference between moments in days.