'Whats the difference between Method and Functions in AwesomeWM

In each class of AwesomeWM documents there is two section. Methods and Functions. Whats the difference between the two. I searched in the lua document and can't found anything there either. Here is a sample

Functions:

awful.screen.getbycoord (x, y)  Return the screen index corresponding to the given (pixel) coordinates.
awful.screen.focus (_screen)    Move the focus to a screen.

Methods

screen:instances ()     Get the number of instances.
screen:screen ()    Iterate over screens.
screen:count ()     Get the number of screens.

Thanks



Solution 1:[1]

https://www.codecademy.com/article/fwd-js-methods-functions

Function — a set of instructions that perform a task.

Method — a set of instructions that are associated with an object.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Reinisdm