Amphora Interview Question

Merging and eliminating arrays using only minimum no of for loops

Interview Answer

Anonymous

Dec 14, 2018

var a = [1,2], b=[3,4]; a.push.apply(a, b); o/p: [1,2,3,4]

4