What is the output line 11?

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]
B . [“bar”,”foo”]
C . [“foo”,”bar”]
D . [“foo:1”,”bar:2”]

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments