How does js determine whether the current time is between 9: 00 a.m. and 4: 00 p.m.?

how to do this?

Mar.22,2021

4 < new Date (). GetHours () < 9

Menu