ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 212 - Certified JavaScript Developer I discussion

Report
Export

Refer to the code below

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

which two statements results in the array [1,2,3,4,5]?

choose 2 answer

A.
[ ].concat(...inArray);
Answers
A.
[ ].concat(...inArray);
B.
[ ].concat.apply(inArray,[ ]);
Answers
B.
[ ].concat.apply(inArray,[ ]);
C.
[ ].concat([...inArray])
Answers
C.
[ ].concat([...inArray])
D.
[ ].concat.apply([ ],inArray);
Answers
D.
[ ].concat.apply([ ],inArray);
Suggested answer: A, D
asked 23/09/2024
Subha Mishra
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first