Ⓜ️method
a function that is an object's property.
features of method
[[HomeObject]] - every method remembers its HomeObject.
generator function as ... (method)
method transformers
memoization - make a method "remember" its return values.
other topics
polymorphism - same method name, different callers.
⭐️ 非常重要:
only methods have
[[HomeObject]].super can only be used within methods.
is not fixed in a method.
does not necessarily refer to the object containing the method.
is passed by the function call. 👉 method binding.
this (method binding)
Last updated
Was this helpful?