DEV Community

Philemon Adaghe
Philemon Adaghe

Posted on

daily quizzz

Which statement is True about lambda functions?
They must have a name
They can have multiple expressions
They are used to define small anonymous functions
They are slower than normal functions and should be avoided

Top comments (1)

Collapse
 
dhruv_rathod_8e54fb82935f profile image
dhruv Rathod

True: They are used to define small anonymous functions

Exactly. Lambda functions are designed for short, throwaway functionality without naming the function.