You can't construct new days of week, you can only get an existing day of week directly or with of method. With
that said, the class doesn't provide equals method, as you can merely use JS operator === for equality
check.
Null and undefined are considered less than anything, except each other.
Note that a method call on null or undefined always leads to an error.
So, if your variable may contain null or undefined, use the respective static method instead.
True if this day goes before other. Null and undefined go before anything, except each other.
Note that a method call on null or undefined always leads to an error.
So, if your variable may contain null or undefined, use the respective static method instead.
True if this day goes after other. Null and undefined go before anything, except each other.
Note that a method call on null or undefined always leads to an error.
So, if your variable may contain null or undefined, use the respective static method instead.