3 ms·
I've never read the ECMAScript spec; but searching through it, I can see that the terms they use is function declaration vs function expression. According to th
by azangru 4y ago
I've never read the ECMAScript spec; but searching through it, I can see that the terms they use is function declaration vs function expression. According to their terminology, function bar(){} on the second line of your function example is a function declaration.
- epolanski 4y agoYes, and a function declaration is a statement.