Method
A method is a function which is a property of an object. There are two kind of methods: Instance Methods which are built-in tasks performed by an object instance, or Static Methods which are tasks that are called directly on an object constructor.
Note: In JavaScript functions themselves are objects, so, in that context, a method is actually an object reference to a function.
See also
- Method (computer programming) in Wikipedia
- Defining a method in JavaScript (comparison of the traditional syntax and the new shorthand)
- List of JavaScript built-in methods
- MDN Web Docs Glossary