//判断变量是否为对象
let variable = '[]'
console.log(variable === Object(variable))
let obj = {
name:'lixian',
age:12,
gender:'male',
height:185
}
const {name,height} = obj;
console.log(`name:${name} height:${height}`)
let arr = new Set();
arr.add(12).add(23);
console.log(`arr:${Array.from(arr)}`)
console.log(arr.has(12))
const result = [12,23].reduce((a,b)=>a+b,0)