Self-invoking functions and closures

Function result

Report a typo

What is the result of executing the following code?

(function(x) {
  return x * 2;
})(10);
Select one option from the list

Create a free account to access the full topic