Solución
solution.tsTypeScript
export function isLeapYear(year: number): boolean {
// Escribe tu solución aquí
if (year < 1) {
return false
}
if (year % 400 === 0) {
return true
}
if (year % 4 === 0 && year % 100 !== 0) return true
return false;
}
isLeapYear(1960)0respuestas