Hi All,

Hope you all are doing fine . IN todays tutorial we will look into one important higher order function in JavaScript which will help you allot for scripting in ServiceNow.

Lets first understand what is Higher order function in JavaScript.

Higher order function :
In JavaScript, functions can be assigned to variables in the same way that strings or arrays can. They can be passed into other functions as parameters or returned from them as well.

A “higher-order function” is a function that accepts functions as parameters and/or returns a function.


Lets now understand the function map in JavaScript :
The .map() method executes a callback function on each element in an array. It returns a new array made up of the return values from the callback function.

The original array does not get altered, and the returned array may contain different elements than the original array.


Hope you like this video. If yes then please like follow subscribe to my channel Technomonk

Regards,
Amit Gujarathi
(Team Technomonk)

technomonkadmin

View all posts

Add comment

Your email address will not be published. Required fields are marked *