Solución
solution.tsTypeScript
export function intercalateChars(first: string, second: string): string {
// Escribe tu solución aquí
const one = first.split('')
const two = second.split('')
let resp = ''
const min = Math.min(one.length, two.length)
for(let i =0; min > i; i++){
resp += one[i] + two[i]
}
if(one.length === two.length) return resp
if(one.length > two.length){
return resp += first.slice(two.length)
} else {
return resp += second.slice(one.length)
}
}0respuestas