Say for example I have an array
arr = [ 1, 2, 3 4, 5, 6 ] Instead, I would like to use aliases for each line Ex.
var a = [ 1, 2, 3 ]; var b = [ 4, 5, 6 ]; Where
arr = [ a, b ] should be the same as the original arr.
Yet the current example gives back [ [1,2,3],[4,5,6] ] instead
How would I achieve something like this in javascript?
arr = [ a, b ]work?arr = [a, b]results in[ [1,2,3],[4,5,6]]