i wanna sum these two arrays with for loop ex. num_array[1]+num2_array[5] num_array[2]+num2_array[4] : i wan to sum two arrays 1)num_array 2)num2_array using for loops... please help me
thank you

<!-- begin snippet: js hide: false -->

<!-- language: lang-js -->

     var num_array,num2_array;
    var i,j,sum=0;

    for(i=0;i<6;i++)
    {
        num_array[i] = get_integer("NUMBER: ","");
        
        while(num_array[i] < 1 && num_array[i] > 500)
        {
            num_array[i] = get_integer("Enter a number inn limit of 1 to 500",0);
        }
        
        
        

    }
    for(i=5;i>=0;i--)
    {
        num2_array[i] = num_array[i];
        show_message(num2_array[i]);
    }    

        


       
            
     


<!-- end snippet -->

        