Weekend Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Exam JavaScript-Developer-I All Questions
Exam JavaScript-Developer-I All Questions

View all questions & answers for the JavaScript-Developer-I exam

Salesforce Developer JavaScript-Developer-I Question # 2 Topic 1 Discussion

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

myArraym can have one level, two levels, or more levels.

Which statement flattens myArray when it can be arbitrarily nested?


A.

myArray. reduce ((prev, curr) => prev.concat(curr)[ ]);


B.

myArray. join (",").split (",");


C.

[ ] .concat {. . .myArray) ;


D.

myArray.flat(Infinity);


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.