const person = { name: 'Bob' } Object.defineProperty(person, 'age', { value: 21 }) console.log(person) this code result in different result in chrome print {name: "Bob", age: 21}
otherwise in Node (v15.6.0), print { name: 'Bob' } what cause that?
没有评论:
发表评论