Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 19 Topic 2 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 19 Topic 2 Discussion

JavaScript-Developer-I Exam Topic 2 Question 19 Discussion:
Question #: 19
Topic #: 2

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);


B.

[ ].concat.apply(inArray,[ ]);


C.

[ ].concat([...inArray])


D.

[ ].concat.apply([ ],inArray);


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.