It is said that in java script the interpretor use the constructor attribute to determain type of object.
For example:
function Person(name){this.name=name}
var person = new Person('jack')
In this case the person.constructor will be function Person
So I think if I change the person.constructor = some other constructor function
The java script interpretor will recognize person as another type.
Here is my test
function Car(brand){this.brand=brand}
person.constructor = Car
person.__proto__.constructor = Car
person instanceof Car
return false
Why interpretor still recognize person as type of Person nor Car?