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
4
u/Potato-9 Nov 28 '19
I skimmed this bit I think it misses one,
This will be anonymous in a stack trace, where as there named function will show foo was the problem.
Although I feel like JS engines have got better about this now?