Amit Gujarathi
Giga Sage
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
11-05-2021
01:35 AM
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)
- 647 Views
2 Comments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
