var A = [['n','sqrt(n)']]; for(var j=1; j<5; ++j){ A.push([j, Math.sqrt(j)]); } var csvRows = []; for(var i=0, l=A.length; i