
Notifications
Clear all
What is mapping in java script?
0
25/05/2023 3:34 pm
Topic starter
Explain Briefly.
Answer
Add a comment
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
- 22 Forums
- 1,969 Topics
- 5,314 Posts
- 0 Online
- 1,290 Members
Our newest member: DouglasSoynC
Latest Post: Space bug using " & n b s p ; "
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed