Differences Between JavaScript Functions and Methods

Tadashi Shigeoka ·  Tue, October 22, 2019

I’ll introduce the differences between JavaScript functions and methods.

JavaScript

Background: Functions vs Methods - A Question Every JavaScript Beginner Has

I’ve compiled reference information to quickly explain the differences between functions and methods, which JavaScript beginners always ask about.

First, please read the following article:

About JavaScript Functions

To understand JavaScript functions, let’s read the following MDN articles:

About JavaScript Methods

To understand JavaScript methods, let’s read the following MDN articles:

Different "this" References

Finally, a major point in distinguishing between functions and methods is that the “this” reference is different. The following articles are easy to understand, so if you don’t understand this well, please read them:

That’s all from the Gemba.