What will be the output of the following JavaScript code?
function addition(a, b) { return a+b; } document.getElementById("test").innerHTML = addition;
SyntaxError
ValueError
0
function addition(a, b) { return a+b; }
Correct Answer : D
(function(x, f = () => x) { var x; var y = x; x = 2; return [x, y, f()]; })(1)
(function() { return [ (() => this.x).bind({ x: 'inner' })(), (() => this.x)() ] }).call({ x: 'outer' });
typeof (function* f() { yield f })().next().next()