Json – How do getters work in nested objects when getting a property name from a nested object during object construction?
I want to get a nested property name in an object during object construction. What am I doing wrong? How do I get the expected output: 'c' from the nested object? Starting point: MDN documentation const obj = { log:…