array1 = [1,0,2,3,4];
array2 = [3,5,6,7,8,13];
var len = array1.length> array2.length ? true : false
console.log(len);
var sum =[];
for(var i =0;i<array2.length ;i++)
{
sum[i] = array1[i] + array2[i];
}
console.log(sum);
To embed this program on your website, copy the following code and paste it into your website's HTML: