Q. What is the purpose of map()?
Solution:
map() creates a new array with the results of calling a function on each element.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
map() creates a new array with the results of calling a function on each element.
Strengthen Your Practice with our comprehensive question bank.