What is the difference between a function and a method?
Answers
Answered by
1
Answer:
A method, like a function, is a set of instructions that perform a task. The difference is that a method is associated with an object, while a function is not. Let's explore some of JavaScript's built-in methods
Answered by
3
Explanation:
A method, like a function, is a set of instructions that perform a task. The difference is that a method is associated with an object, while a function is not.
Similar questions