ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 47 - Certified JavaScript Developer I discussion

Report
Export

Refer to the following code:

Let obj ={

Foo: 1,

Bar: 2

}

Let output =[],

for(let something in obj{

output.push(something);

} console.log(output);

What is the output line 11?

A.
[1,2]
Answers
A.
[1,2]
B.
["bar","foo"]
Answers
B.
["bar","foo"]
C.
["foo","bar"]
Answers
C.
["foo","bar"]
D.
["foo:1","bar:2"]
Answers
D.
["foo:1","bar:2"]
Suggested answer: C
asked 23/09/2024
Hector Quintero
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first