Solución
solution.tsTypeScript
export function intercalateChars(first: string, second: string): string {
// Escribe tu solución aquí
let masLargo: number = Math.max(first.length, second.length);
let resultado: string[] = [];
for(let i = 0; i < masLargo; i++){
if(first[i]) resultado.push(first[i]);
if(second[i]) resultado.push(second[i]);
}
return resultado.join("");
}0respuestas