Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

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 # 17 Topic 3 Discussion

JavaScript-Developer-I Exam Topic 3 Question 17 Discussion:
Question #: 17
Topic #: 3

Refer to the following array:

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

JavaScript-Developer-I Question 17

Which two lines of code result in a second array, arr2 being created such that arr2 is not

a reference to arr1?


A.

Let arr2 = arr1.slice(0, 5);


B.

Let arr2 = Array.from(arr1);


C.

Let arr2 = arr1;


D.

Let arr2 = arr1.sort();


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.