How do I merge two json array objects?

there are two array objects
let a = [

{
    "id": 1,
    "name": "zhangsan"
},
{
    "id": 2,
    "name": "lisi"
},
{
    "id": 3,
    "name": "wangwu"
}

]

let b = [

]
{
    "age": 12
},
{
    "age": 20
},
{
    "age": 24
}

]

want to merge into
let c = [

{
    "id": 1,
    "name": "zhangsan",
    "age": 12
},
{
    "id": 2,
    "name": "lisi",
    "age": 20
},
{
    "id": 3,
    "name": "wangwu"
    "age": 24
}

]

could you tell me how to achieve it? Many ways have been tried, but they don"t work.

Sep.03,2021

var a =[
    {
        'id': 1,
        'name': 'zhangsan'
    },
    {
        'id': 2,
        'name': 'lisi'
    },
    {
        'id': 3,
        'name': 'wangwu'
    }
];
var b = [
    {
        'age': 12
    },
    {
        'age': 20
    },
    {
        'age': 24
    }
];
var c = []
for(var i = 0;i<a.length;iPP){
    c.push(Object.assign(a[i],b[i]))
}
console.log(c);


for (i in a){
    a[i] = Object.assign(a[i],b[i])
}

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e55f95-440ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e55f95-440ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?