What will be the output of the following code?
const date = new Date('2023-05-31'); console.log(date.getMonth());
The month of the date (0-11)
The year of the date
The day of the month
The day of the week (0-6)