Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?
o(x,y);
o.m(x) && o.m(y);
m(x,y);
o.m(x,y);
Correct Answer : D
What will be the output of the following JavaScript code?
function addition(a, b) { return a+b; } document.getElementById("test").innerHTML = addition;
Can we use a function as a variable value?
(function(x, f = () => x) { var x; var y = x; x = 2; return [x, y, f()]; })(1)