Solución
solution.tsTypeScript
export function swapCase(text: string): string {
// Escribe tu solución aquí
let output = '';
for(let i = 0; i < text.length; i++){
output += text[i] === text[i].toLowerCase()
? text[i].toUpperCase()
: text[i].toLowerCase();
}
return output;
}0respuestas