Comparison of date without year in JavaScript

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

javascriptlet date1 = '12-01';
let date2 = '11-01';

console.log(date1 > date2);
Задание 1

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

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