I understand a javascript expression can be defined as "producing a value".
It seems the following is an expression:
function fun(){}//1
Because when enforcing the expression context with parentheses does not cause an error:
(function fun(){})//2
But then what is the value produced by the above expression (//1
)?