Solución
solution.tsTypeScript
export function processName(name: string): string {
// Define tres arrow functions separadas para cada paso
// Aplícalas en secuencia sin anidarlas
const inUppercase = (text: string) => text.toUpperCase()
const addPrefix = (text: string) => `Usuario: ${inUppercase(text)}`
const addSufix = (text: string) => `${addPrefix(text)} [activo]`
return addSufix(name);
}0respuestas