JS
challenger
Home
JavaScript Practice
JavaScript dates
Check if one date is earlier than another
Check if one date is earlier than another
Write a function that takes two date instances (a and b) as arguments. It should return true if a is earlier than b. It should return false otherwise.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console