What will be the output of the following code?
const date = new Date(); date.setMonth(11); console.log(date.getMonth());
The current month
11
An error
The previous month