Solución
solution.tsTypeScript
export function isLeapYear(year: number): boolean {
// Escribe tu solución aquí
return year % 400 === 0 ? true : year % 4 === 0 && year % 100 !== 0 ? true : false;
}0respuestas
export function isLeapYear(year: number): boolean {
// Escribe tu solución aquí
return year % 400 === 0 ? true : year % 4 === 0 && year % 100 !== 0 ? true : 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.