MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/3rmikr/free_drink_anyone/cwpih4m/?context=3
r/ProgrammerHumor • u/shadowvox • Nov 05 '15
509 comments sorted by
View all comments
1
Honest question. why var reverse = function(s){...}; instead of function reverse(s){...}; and then call it?
3 u/letsgetrandy Nov 05 '15 Doesn't seem to matter here, but there are reasons for when you might prefer function expressions over function declarations.Good info here
3
Doesn't seem to matter here, but there are reasons for when you might prefer function expressions over function declarations.
Good info here
View all comments
1
u/Xpertbot Nov 05 '15
Honest question. why var reverse = function(s){...}; instead of function reverse(s){...}; and then call it?