I have changed this so it writes the information and not alerts it, could it be possible to use my arrays that I initially placed instead of the new ones created by the person who kindly provided this code. It is perfect but need to have the arrays of how I initially created them. also, if you run this script it just puts everything on 1 line, could somebody advise how to break the line up as I have tried both of these things and it does not execute properly.
<script type=“text/javascript”>
var j = [2,1,5,4,3];
var a = [4,5,2,3,1];
var c = ;
for(var i = 0; i < j.length; i++) {
c[i] = j[i] + a[i];
}
document.write(c); 6, 6, 7, 7, 4
var h = c[0];
for(var n = 1; n < c.length; n++) {
if(h < c[n] ) { h = c[n]; }
}