const a = {}
const b = {key: 'b'}
const c = {key: 'c'}
a[b] = 123
a = 456
console.log(a[b])
- A:
123
- B:
456
- C:
undefined
- D:
ReferenceError
参考答案
const a = {}
const b = {key: 'b'}
const c = {key: 'c'}
a[b] = 123
a = 456
console.log(a[b])
123
456
undefined
ReferenceError
参考答案