const caroline = {
  firstNm: 'Caroline',
  ag: 27,
};
//age 重命名属性
//name 初始值
const { firstNm, ag: age,name='zhangsan' } = caroline;
console.log(firstNm, age, name);
Last Updated:
Contributors: pengrengui