You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the simple `class Rabbit`, the `Rabbit` function has the same prototype
68
-
69
-
```js run
70
-
classRabbit {}
71
-
72
-
// instead of (2) that's correct for Rabbit (just like any function):
73
-
alert( Rabbit.__proto__===Function.prototype );
74
-
```
68
+
So `Rabbit` doesn't provide access to static methods of `Object` in that case.
75
69
76
70
By the way, `Function.prototype` has "generic" function methods, like `call`, `bind` etc. They are ultimately available in both cases, because for the built-in `Object` constructor, `Object.__proto__ === Function.prototype`.
0 commit comments