⊗jsPmTmCWY 334 of 502 menu

Comparison of date without year in JavaScript

It is not necessary to compare years. A date can simply be a month and a day:

let date1 = '12-01'; let date2 = '11-01'; console.log(date1 > date2);

Write code that will compare the two dates below and print a message about which one is greater:

let date1 = '09-21'; let date2 = '09-23';
enru