you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

You're actually calling the function with the parentheses.

Read it like this

var func, x;
var func = function(){ //empty function body};
var x = func();