Solución
solution.tsTypeScript
export function swapCase(text: string): string {
let newText = "";
for (const c of text) {
let newC = "";
if (c >= "a" && c <= "z") {
newC = c.toUpperCase();
} else {
newC = c.toLowerCase();
}
newText += newC;
}
return newText;
}0respuestas