JavaScript-de günüň soňy

Indiki günüň soňuny öz içine alýan sene obyektini alyň:

javascriptlet now  = new Date();
let date = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59);

Indiki günüň soňuny indiki günüň ertir gejesi (1 sekunt aralykda) hasaplap bolýar:

javascriptlet now  = new Date();
let date = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1, 0, 0, 0);

Bilşiňiz ýaly, şeýle ýagdaýda nollary çykaryp bolýar:

javascriptlet now  = new Date();
let date = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1);

Şeýle hem, indiki günüň 24:00:00 wagty ertir gejesi bolup durýar:

javascriptlet now  = new Date();
let date = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 24, 0, 0);

Nollary çykaraýalyň:

javascriptlet now  = new Date();
let date = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 24);
Задание 1

Güne çenli näçe sagat galandygyny anyklaň.