var f = function() { }; function f() { } 
  • 2
    because var f = function() { }; in essence, this is a variable f , which has a function as a value ...... and what do we do at the end of a variable declaration? The answer is obvious ...... For example, var f = 666; - semicolon. the same thing here - Alexey Shimansky
  • Because func. decl. this is a construct, and func. exp. - expression. - wcobalt

0