2 Matching Annotations
- Nov 2020
-
developer.mozilla.org developer.mozilla.org
-
The Object.getPrototypeOf() method returns the prototype (i.e. the value of the internal [[Prototype]] property) of the specified object.
internal: [[Prototype]]
Other times we see something used to indicate it is internal. In fact, this even supersedes proto__. So why did they use a different naming convention? Did they decide [[ ]] is a better naming convention?
-
-
-
In short, I think the idea of public methods being actions works just fine as an api.
-