Q. What is the purpose of map()?

A
Removes elements
B
Creates a new array with results
C
Sorts array
D
Reverses array
Solution:

map() creates a new array with the results of calling a function on each element.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!