Functions inside variables or consts


Is it necessary to declare a function inside of a const or a let/var?


if you use a function expression, then yes, if you use a function declaration then, no, see the documentation:


Ty very much, got it now ^^


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.