> front-end

First class-functions

Created by: Kitman Yiu

Updated at: 1 day ago

  • Definition: A function is called "first-class" when it can be passed as an argument to other functions, can be returned by another function, and can be assigned as a value to a variable.
  • Benefits: Modularity, Readability, Maintainability, Testability
  • Keywords: Can be passed as an argument to other functions, can be returned by another function, and can be assigned as a value to a variable.