Question: 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 first (and others) element of `array2` and etc.

For example:

```
array3 = ["one 1", "two 1", "three 1", "four 1", "five 1", "one 2", "two 2", "three 2", "four 2", "five 2"...]

```

I understand that I need to use for loop but I don't know how to do it.

Answer: 
There is still the option with loops:

```
var array2 = [1,2,3,4,5],
array1 = ["one","two","three","four","five"],
m = [];
for(var a1 in array1){  
  for(var a2 in array2){
      m.push( array1[a1]+ array2[a2] );    
  }
}
console.log(m);

```
Try (JS)

```
function myFunction(){
            var F = [1, 2, 3, 4,5];
            var S = ["one", "two", "three", "four", "five"];
            var Result = [];

           var k=0;
            for (var i = 0; i < F.length; i++) {
                for (var j = 0; j < S.length; j++) {
                    Result[k++] = S[j] + " " + F[i];
                }
            }

            console.log(Result);
        }

```