JavaScript si el tiempo es entre las 7 p.m. y las 7 a.m. hacer esto? JavaScript si acción de tiempo de declaración

var hour = new Date().getHours();

// between 7 PM and 7 AM respectively
if(hour >= 19 || hour <= 7) {
    document.body.className += 'between7';
} else {
    document.body.className += 'notBetween7';
}
Copy
Xerothermic Xenomorph