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.

Related questions

+1 vote
asked Mar 22, 2021 in JavaScript by Robindeniel
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
...