📜  如何在javascript代码示例中声明数组内的对象

📅  最后修改于: 2022-03-11 15:03:51.748000             🧑  作者: Mango

代码示例1
let cats = {
    name: 'bob',
      children: [let child1 = {
                   console.log('this is how to create objects inside an array'];
               }]
};