JavaScript Tutorial
JavaScript Tutorial
Object.create
rabit.hasOwnProperty('eats')
Object.getPrototypeOf(obj1)===obj
1.Class
2.Instance
3.Private field/function
4.Constructor
Object.create
rabit.hasOwnProperty('eats')
Object.getPrototypeOf(obj1)===obj
1.Class
2.Instance
3.Private field/function
4.Constructor