I created a normal JS object
var person1 = {
name:"ABCD"
}
And then created another Object person2 as
var person2 = Object.create(person1)
Now in browser console when I type
person1 - it gives me the object definition. But when I type person2 - an empty object is printed (i.e {}) though person2.name returns ABCD.
Any thoughts on what is happening here.