So I found this terminology a little bit confusing. I normally see tutorials talking about function expression with an variable assigned to a function, but also, from Mozilla's official website function expression, it says:
A function expression is very similar to and has almost the same syntax as a function statement (see function statement for details). The main difference between a function expression and a function statement is the function name, which can be omitted in function expressions to create anonymous functions. A function expression can be used as a IIFE (Immediately Invoked Function Expression) which runs as soon as it is defined. See also the chapter about functions for more information.
so it doesn't mention anything about variable assignation. So, is
var funcvar = function(){};
or
function(){};
is a function expression? Or neither of them? Can anybody give me a concise definition?
Thanks guys!
EDIT: or, is
function(){};
called function statement? And it's an anonymous function?