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”]
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”]