Javascript assignment expression to the same variable

后端 未结 0 894
死守一世寂寞
死守一世寂寞 2020-12-20 03:41
let a = { x: 1 }
a.y = a = { xx: 1 }

console.log(a)

Why doesn\'t the a have the property y, can anyone explain the inner

相关标签:
回答
  • 消灭零回复
提交回复
热议问题