I have 2 arrays in ruby
firstarray = ["1212","3434"]
secondarray = ["9999","6666","7777"]
I want to merge these 2 arrays into thirdarray and thirdarray should have following structure-
thirdarray = ["1212","3434","9999","6666","7777"]
I was planning to use this:
thirdarray = [firstarray, secondarray.join(", ")]
but this gives me below which does not have " " around individual values 9999, 6666, 7777.
["1212", "3434", "9999 , 6666 , 7777"]
How can I do that?