25/05/2023 3:34 pm
Topic starter
Notifications
Clear all
What is mapping in java script?
0
Add a comment
1 Answer
0
26/05/2023 4:30 am
In JavaScript, mapping is the process of creating a new array from an existing array by applying a function to each element of the original array. The function can be used to transform the elements in any way, such as by converting them to a different type, formatting them, or performing some other operation.
The map()
method is used to perform mapping in JavaScript. The map()
method takes two arguments: a function and an array. The function is called once for each element in the array, and the return value of the function is used to create a new element in the new array.
Add a comment
Add a comment
Forum Information
- 14 Forums
- 1,835 Topics
- 5,051 Posts
- 1 Online
- 1,078 Members
Our newest member: Richardnop
Latest Post: loli
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed