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

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 27 Topic 3 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 27 Topic 3 Discussion

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

Refer to the following code:

01 let obj = {

02 foo: 1,

03 bar: 2

04 }

05 let output = []

06

07 for (let something of obj) {

08 output.push(something);

09 }

10

11 console.log(output);

What is the value of output on line 11?


A.

An error will occur due to the incorrect usage of the for_of statement on line 07.


B.

[1, 2]


C.

[ " foo " , " bar " ]


D.

[ " foo:1 " , " bar:2 " ]


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.