scottgruber.me

What are anonymous functions?

Do you know the answer to this question?

During a tech interview you’ll probably get a question or two that you don’t know how to answer. I could guess the answer, but that’s always unsatisfactory to me. To me its more important thing is to acknowledge that you know you don’t know. But that you know how to find out. I found out.

An anonymous function is a function that doesn’t have a name. They’re created on the fly and then almost never referred to again. You don’t have to use anonymous functions.