We can use anonymous functions in
situations where we don't want to
reuse the functionality.
Take a look at the use of
an anonymous function as a
callback function:
We can definitely rewrite the above
code and use a named function
instead of an anonymous function.
You'll get to see the use of
anonymous functions more
when you study topics like higher order
functions, and Asynchronous JavaScript.