+ 3
What's the difference between method and function in JavaScript ?
2 Answers
+ 5
From
https://dev.to/tiffany/what-is-the-difference-between-a-function-and-a-method-in-javascript-3mkj
"In short: a method is a function that belongs to a class. In JavaScript, however, a method is a function that belongs to an object."
+ 1
Ole113 thank you very very much it's a really good explanation (I see the difference between Java and Javascript )