SOURCE

//解构对象

function breakfast(){
  
  return {dessert:'面包',tea:'绿茶',fruit:'梨子'};
}

let {dessert:dessertt,tea:teat,fruit:fruitt} = breakfast();

console.log(dessertt,teat,fruitt);
console 命令行工具 X clear

                    
>
console