Check if two dates are within 1 hour from each other

Write a function that takes two date instances as argument. It should return true if the difference between the dates is less than or equal to 1 hour. It should return false otherwise.
function
myFunction
(
a, b
)
{

return
}
Test Cases:
myFunction(new Date('2000/01/01 08:00:00'), new Date('2000/01/01 08:45:00'))
Expected
true
myFunction(new Date('2000/01/01 09:00:00'), new Date('2000/01/01 08:45:00'))
Expected
true
myFunction(new Date('2000/01/01 08:00:00'), new Date('2000/01/01 09:45:00'))
Expected
false
myFunction(new Date('2000/01/01 08:00:00'), new Date('2000/01/01 09:00:00'))
Expected
true