ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 117 - Certified JavaScript Developer I discussion

Report
Export

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);
Answers
A.
[ ]. Concat.apply ([ ], inArray);
B.
[ ]. Concat (... inArray);
Answers
B.
[ ]. Concat (... inArray);
C.
[ ]. concat.apply(inArray, [ ]);
Answers
C.
[ ]. concat.apply(inArray, [ ]);
D.
[ ]. concat ( [ ….inArray ] );
Answers
D.
[ ]. concat ( [ ….inArray ] );
Suggested answer: A, B
asked 23/09/2024
Martin Simmons
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first