JS Coding Questions Logo
JS Coding Questions
#457💼 Interview

What are the examples of built-in higher order functions?

Advertisement

728x90

There are several built-in higher order functions exists on arrays, strings, DOM and promise methods in javascript. These higher order functions provides significant level of abstraction. The list of functions on these categories are listed below,

1. arrays: map, filter, reduce, sort, forEach, some etc.

2. DOM: The DOM method element.addEventListener(type, handler) also accepts the function handler as a second argument.

3. Strings: replace() method.

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 29

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
457of476
What are the examples of built-in higher order functions? | JSCodingQuestions.com