Reputation:
This is more that i don't know the terminology to Google to get the answer i need
example console.log()
where log is a sub function of console, what is the name/syntax of this sort of function?
Upvotes: 2
Views: 65
Reputation: 943569
Functions that are properties of an object, and called in the context of that object are usually known as methods.
The EMCAScript (being "standard" JavaScript) specification has the following definition:
method
function that is the value of a property
Upvotes: 3