function getLastDayOfMonth(inputDate: Date): number {
const lastDay = new Date(inputDate.getFullYear(), inputDate.getMonth() + 1, 0);
return lastDay;
}
Which of the following statements is true regarding the provided code?
function getLastDayOfMonth(inputDate: Date): number {
const lastDay = new Date(inputDate.getFullYear(), inputDate.getMonth() + 1, 0);
return lastDay;
}
Which of the following statements is true regarding the provided code?
Create a free account to access the full topic