PrepAway - Latest Free Exam Questions & Answers

What is the primary difference between method and functions when working with custom JavaScript objects?

What is the primary difference between method and functions when working with custom
JavaScript objects?

PrepAway - Latest Free Exam Questions & Answers

A.
There is no difference between method and functions in JavaScript.

B.
Method work with single instances of objects, whereas functions can work on all instances of an
object.

C.
Functions are declared in the constructor, whereas method are never declared in the
constructor.

D.
Method are single entities, whereas functions can have more than one method.


Leave a Reply