user1496176
user1496176

Reputation:

What do you call it when

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

Answers (1)

Quentin
Quentin

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

Related Questions