adplus-dvertising
frame-decoration

Question

Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?

a.

o(x,y);

b.

o.m(x) && o.m(y);

c.

m(x,y);

d.

o.m(x,y);

Posted under JavaScript

Answer: (d).o.m(x,y);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?