Which two statements result in the array [1, 2, 3, 4, 5]?

Refer to the code below:

Let inArray =[ [ 1, 2 ] , [ 3, 4, 5 ] ];

Which two statements result in the array [1, 2, 3, 4, 5]? Choose 2 answers
A . [ ]. Concat.apply ([ ], inArray);
B . [ ]. Concat (… inArray);
C . [ ]. concat.apply(inArray, [ ]);
D . [ ]. concat ( [ ….inArray ] );

Answer: A,B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments