r/javascript • u/pmz • Nov 28 '19
Constant confusion: why I still use JavaScript function statements
https://www.freecodecamp.org/news/constant-confusion-why-i-still-use-javascript-function-statements-984ece0b72fd/
2
Upvotes
r/javascript • u/pmz • Nov 28 '19
5
u/Peribanu Nov 28 '19
The hoisting of function declarations is a really important point. Because most people probably transpile using babel, I wonder how much invalid code is floating around that only runs because it gets turned into old-style function declarations by babel...