0 / 60 seg.

What will be the output of the following code?

const date = new Date('2023-05-31');
console.log(date.getMonth());