I have this object:
var A = {
  headers: {
    'a property' : 'a value'
  }
};
How I can create another object like this?
I do not want to type the whole parent object? My new object should contain the parent object, so when I console.log var A, B, and C it should produce different results.
var B = {
  headers: {
    'a property' : 'a value',
    'b property' : 'b value'
  }
};
var C = {
  headers: {
    'a property' : 'a value',
    'b property' : 'b value'
  },
  other: {
    other2: {
      'other2 property' : 'other2 property'
    }
  }
};
 
     
     
     
    