let a = [] let b = [1,2,3] let c = [4,5,6] a = a.concat(b,c) console.log(a) let aa = {} let bb = {b:1} let cc = {c:2} Object.assign(aa,bb,cc) console.log(JSON.stringify(aa))