I’m trying to combine 2 arrays in JavaScript into one.
var lines = new Array("a","b","c");
lines = new Array("d","e","f");
This is a quick example, I want to be able to combine them so that when the second line is read the 4th element in the array would return "d"
How would I do this?
1 Answer