Solución
solution.tsTypeScript
export function processName(name: string): string {
const toUpperCase = (text: string) => text.toUpperCase()
const addPrefix = (name: string) => `Usuario: ${toUpperCase(name)}`
const addSuffix = (name: string) => `${addPrefix(name)} [activo]`
return addSuffix(name)
}0respuestas