Question · JavaScript and TypeScript course · Module 9: Design Patterns and Architecture

Higher-order Functions

What is a higher-order function?

Answer options

  • A function that has more than three parameters
  • A function that takes another function as an argument or returns a function
  • A function declared inside a class
  • A function that calls itself recursively

You can check the correct answer by solving this task in the CodeWorlds game.