I have attached a screenshot of a piece of code. This was not the way it was suggested by the tutorial guide but I was wondering why this alternate form would not work.
My thought process was, to create an object 'friends', and then add empty objects 'bill' and 'steve' as properties to 'friends'. Subsequently, to add the properties 'firstName', 'lastName', and 'number' to 'bill' and 'steve' objects individually.
It appeared to make sense to me, but what would be the reason it is syntactically wrong?
Thank you so much beforehand!