var a = ["a","b","c"], b = ["A","B","C"], c = [1,2,3], output = "", i; for (i = 0; i < a.length; i += 1) { output += a[i] + b[i] + c[i] + "\n"; }