What is the result of the following code?
const date = new Date(2023, 0, 1);
date.setMonth(date.getMonth() + 1);
console.log(date.getMonth());
What is the result of the following code?
const date = new Date(2023, 0, 1);
date.setMonth(date.getMonth() + 1);
console.log(date.getMonth());