I have a question regarding nested objects. After creating any object, let’s say we have an object from the example that Codecademy gives us in the lecture “Destructured Assignment”.
const vampire = {
name: 'Dracula',
residence: 'Transylvania',
preferences: {
day: 'stay inside',
night: 'satisfy appetite'
}
};
why there is no semicolon after closing bracket of nested object “Preferences”?