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