0 votes
in JavaScript by
Which one of the following code is equivalent to call a function "x" of the class "a" which have two arguments g and h?

a) a,x(g,h);

b) x(g) &&a.x(g);

c) x(a,g);

d) (g,h);

1 Answer

0 votes
by

Answer: A

Reason: If a function has more than one argument, it is separated by commas. The above code is an invoked expression: in which a function a.x and two arguments "g" and "h" are separated by commas.

...