Object Descriptors & Property Flags

How do nested properties behave when the parent object is frozen?
const config = { api: { url: 'https://api.example.com' } };
Object.freeze(config);

config.api.url = 'https://new-api.example.com';
config.newProp = 'test';

console.log(config.api.url);
console.log(config.newProp);
Next Question (19/40)