Solución
solution.tsTypeScript
export function isLeapYear(year: number): boolean {
// Escribe tu solución aquí
//Evalúa primera condición
if (year % 400 == 0) {
return true;
}
//Evalúa segunda posible condición
if (year % 4 == 0 && year % 100 != 0) {
return true;
}
return false;
}0respuestas