Compare Dates
Write a JavaScript function to compare dates (i.e. greater than, less than or equal to). Your function will take 2 dates as arguments and will console.log whether the first date is >
, <
, or =
the second date. (You can format this however you want by using the actual "greater than", "less than" words, or put the symbols, etc. You can also have it print the dates as part of that sentence if you want. All that really matters is that it shows the right answer).
Assume dates will be in the numeric mm/dd/yyyy
format. (E.g.: March 4th, 1985 would be input as the string 03/04/1985
.)