A

Admin • 828.03K Points
Coach

Q. If you have a function f and an object o, you can define a method named m of o with

  • (A) o.m=m.f;
  • (B) o.m=f;
  • (C) o=f.m;
  • (D) o=f;
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
A method is nothing more than a JavaScript function that is stored in a property of an object. If you have a function f and an object o, you can define a method named m of o with the following line:

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.