Hard
What will the following code display:
let myObj = {
a : 'A',
b : 'B',
c : {
d : 'D',
e : 'E',
f : {
g : 'G'
},
h : 'H'
}
};
let { c : { f : { g: foo}, e: baz, b: bar } }= myObj;
console.log(foo, bar, baz);
Author: Jean-marie CléryStatus: PublishedQuestion passed 2142 times
Edit
Similar QuestionsMore questions about Javascript