Untitled

Run Settings
LanguageJavaScript
Language Version
Run Command
function checkHour(from, to, v) { if (from > to) { let shift = 24 - from; to += shift; v += shift; from = 0; } return v >= from && v <= to; } console.log(checkHour(10, 20, 5)); console.log(checkHour(20, 10, 5)); console.log(checkHour(22, 24, 24));
Editor Settings
Theme
Key bindings
Full width
Lines