Slava.In
Slava.In

Reputation: 1059

Are addListener and addEventListener the same? Can I use them interchangeably?

Started to learn Node.js, it seems like sometimes addListener is used and sometimes addEventListener, are they completely same? Can I use any at any time?

Upvotes: 1

Views: 299

Answers (1)

Quentin
Quentin

Reputation: 943571

No they aren't, and no, you can't.

What methods an API makes available will depend on the particular API.

I'm not aware of any that support addListener as an alias for addEventListener or vice versa.

Upvotes: 2

Related Questions