JSchallenger

Return the number of days between two dates

Viewed: 197
Attempted: 76
Solved: 17
// Write a function that takes two date instances as argument
// It should return the number of days that lies between those dates
//

function myFunction() {

return
}
Test Cases:
myFunction(new Date('2020-06-11'), new Date('2020-06-01'))
Expected
10
myFunction(new Date('2000-01-01'), new Date('2020-06-01'))
Expected
7457