πŸ“Š JavaScript
Q. What does the map() method do?
  • (A) Creates a new array with the result of calling a function on every element
  • (B) Finds an element in an array
  • (C) Filters elements from an array
  • (D) Sorts elements
πŸ’¬ Discuss
βœ… Correct Answer: (A) Creates a new array with the result of calling a function on every element

Explanation: map() transforms each element of the array.

Explanation by: Mr. Dubey
map() transforms each element of the array.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
53
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate