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
Copy file name to clipboardExpand all lines: session 1/chapters/3. Prototypes.md
+32-2Lines changed: 32 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,37 @@ The constructor property points back to the function on which `prototype` object
25
25
26
26

27
27
28
-
## Prototype Object or Prototype
28
+
# Dunder proto (`__proto__`) vs prototype (`prototype`)
29
+
30
+
`prototype` is a property of a Function object. It is the prototype or you can say blueprint of objects constructed by that function.
31
+
32
+
`__proto__` is an internal property of an object, pointing to its prototype. Current standards provide an equivalent Object.getPrototypeOf(obj) method, though the de facto standard `__proto__` is quicker.
33
+
34
+
**`__proto__` property of an object is a pointer to the object's constructor function's prototype property**
0 commit comments