The last discussion about the prototype

1:create Object

2:create function

3:create a rule:all instance must have __proto__, and it reference to Father's prototype

4:create a rule:the prototype is object,and it has a attribute named constructor,the constructor reference to it self

5:correct Object,set it`s prototype null,and set it`s __proto__  reference to Function

6:create Date、Array、Math、Function by Function

 

 

你可能感兴趣的:(The last discussion about the prototype)