Unsere Freiwilligen haben diesen Artikel noch nicht in Deutsch übersetzt. Machen Sie mit und helfen Sie, das zu erledigen!
A method is a function which is a property of an object. It exist two kind of methods: Instance Method which are built-in tasks performed by an object instance, or Static Methods which are tasks that can be performed without the need of an object instance.
Note: In JavaScript functions themselves are objects, so, in that context, a method is actually an object reference to a function.
Learn more
Learn about it
- Method (computer programming) in Wikipedia
- Defining a method in JavaScript (comparison of the traditional syntax and the new shorthand)