Solución
solution.tsTypeScript
export function isLeapYear(year: number): boolean {
// Escribe tu solución aquí
if ( year % 400 === 0 || year % 4 === 0 && year % 100 !== 0) {
return true
}
return false;
}0respuestas
export function isLeapYear(year: number): boolean {
// Escribe tu solución aquí
if ( year % 400 === 0 || year % 4 === 0 && year % 100 !== 0) {
return true
}
return false;
}Aún no hay respuestas
¡Sé el primero en responder!
Recuerda ser amable. Estás comentando la solución de otra persona. Comparte tu perspectiva de forma constructiva y respetuosa.