I have
array1 = [1,2,3,4,5]; array2 = ["one","two","three","four","five"];
I want to get array3 , where all elements of array1 with the first (and other) element of array2 , etc.
For instance:
array3 = ["one 1", "two 1", "three 1", "four 1", "five 1", "one 2", "two 2", "three 2", "four 2", "five 2"...]
I understand what I need to use for the loop, but I don't know how to do it.
source share