JS
challenger
Home
JavaScript Practice
JavaScript dates
Return the number of days between two dates
Return the number of days between two dates
Write a function that takes two date instances as argument. It should return the number of days that lies between those dates.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console