Computer Science, asked by pillalamarrivikram, 7 hours ago


What is the difference between a function and a method?​

Answers

Answered by ssk305805
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 YourQueen00
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