function repeat(src,n){ if(n==0)return '' if(n==1)return src if(n>1){return src.concat(repeat(src,n-1))} } repeat('123',3)