Single Choice Not Set

QWhat is a higher-order function in JavaScript?

ID: #4874 Javascript Functions MCQ 255 views
Question Info
#4874Q ID
Not SetDifficulty
Javascript Functions MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A A function that returns another function
  • B A function that takes another function as an argument
  • C A function that does both of the above
  • D none of these
Correct Answer

Explanation

A higher-order function is a function that either returns another function or takes another function as an argument, or both.
Higher-order functions are a powerful tool in functional programming because they allow you to create new functions by combining and modifying existing ones.

Share This Question

Challenge a friend or share with your study group.