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).
Date
Hours of our life
Report a typo
Write a program in JavaScript
let birthday = new Date("2000-03-24")
let firstDayInSchool = new Date("2008-09-01")
console.log(/* print your result */)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.