I need to write new properties for the comment property without erasing it. This is my object now:
product:
{
  name: 'name',
  briefPDescription: 'text',
  details:
   {
     about: 'text',
     description: 'text',
     comment:
     {
         "text": 'text'
     },
     subDescription: 'text' 
}
What you need to write:
author:
{ 
    name: 'name',
    position: 'text',
    photo: '../avatar.png' 
} 
How should it be:
product: 
{
  name: 'name',
  briefPDescription: 'text',
  details:
  {
     about: 'text',
     description: 'text',
     comment: 
     { 
         text: ''text',
         name: 'name',
         position: 'text',
         photo: '../avatar.png' 
     },
     subDescription: 'text' 
}
I did this:
product.comment = author;
But it deleted the text property.
How can I write new properties to the comment property without erasing it?
 
     
     
     
    