I have the following Array's (below), and I need to print the ranges of positions that are there in increments, let me explain, in position 0 of array1 there is 10 and in array2 there is 15, I need it to increase by one and then start from the number that is in position 1 of array1 example:
var miArray = [ 10, 20, 40, 65 ];
var miArray2= [15, 26, 44, 71];
this should print me:
10,11,12,13,14,15,20,21,22,23,24,25,26,40,41,42,43,44,65,66,67,68,69,70,71
I wanted to try some examples I searched on the internet but I don't even come close to it.
You only need two
for
nested like this: