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;
πŸ’¬ Discuss
βœ… Correct Answer: (A) o.m=m.f;
Explanation: 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:
Explanation by: Mr. Dubey
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:

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
186
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate