Solución
solution.tsTypeScript
export function classifyTemp(celsius: number): string {
// Retorna "frío", "templado" o "calor" según la temperatura
if(celsius < 10){
return "frío"
}else if (celsius <= 25){
return "templado"
}else {
return "calor"
}
}0respuestas