79
rated 0 times
[
81]
[
2]
/ answers: 1 / hits: 21865
/ 8 Years ago, mon, may 2, 2016, 12:00:00
I saw this response for extending one array with another
so I tried:
console.log(['a', 'b'].push.apply(['c', 'd']));
but it prints:
2
shouldn't it print:
['a', 'b', 'c', 'd']
if not what was i doing wrong?
More From » arrays