PrepAway - Latest Free Exam Questions & Answers

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

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

PrepAway - Latest Free Exam Questions & Answers

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

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

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

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


Leave a Reply