⊗jsOpPrPr 56 of 60 menu

Period Class in OOP in JavaScript

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

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

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

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

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

enru