Hours of our life

Report a typo

The information about the date of birth of our imaginary friend is stored in the birthday variable. The information about when he started school is stored in the firstDayInSchool variable. Print the number of hours that passed between these two events (the date difference will give you the span of time in milliseconds, don't forget to convert them to hours).

Write a program in JavaScript
let birthday = new Date("2000-03-24")

let firstDayInSchool = new Date("2008-09-01")


console.log(/* print your result */)
___

Create a free account to access the full topic