DEV Community

Discussion on: Things I wish I knew about… JavaScript functions

Collapse
 
moopet profile image
Ben Sinclair

Apart from anything it saves coming up with lots of different names for anonymous functions

Hang on a second. Anonymous functions don't have names, that's why they're called "anonymous"!

Collapse
 
arafel profile image
Paul Walker

Good point, well made. :)

I think I was having a brain hiccup at the time, for some reason I was thinking functions declared with function have to be named - but of course they don't. Thanks for chipping in. :)