NIELIT O Level Exam

The primary purpose of the array map() function is that it __________

The primary purpose of the array map() function is that it __________

ऐरे मैप () फ़ंक्शन का प्राइमरी उद्देश्य यह है कि यह __________

A. maps the elements of another array into itself किसी अन्य ऐरे के एलिमेंट को अपने आप में मैप करता है

B. passes each element of the array and returns the necessary mapped elements ऐरे के प्रत्येक एलिमेंट को पास करता है और आवश्यक मैप किए गए एलिमेंट्स को लौटाता है

C. passes each element of the array on which it is invoked to the function you specify, and returns an array containing the values returned by that function उस ऐरे के प्रत्येक एलिमेंट को पास करता है जिस पर इसे आपके द्वारा निर्दिष्ट फ़ंक्शन पर लागू किया जाता है, और उस फ़ंक्शन द्वारा लौटाए गए मानों वाला एक ऐरे देता है

D. pass the elements of the array into another array ऐरे के एलिमेंट्स को किसी अन्य ऐरे में पास करें




Correct Answer is :

C. passes each element of the array on which it is invoked to the function you specify, and returns an array containing the values returned by that function



Explanation
map() is a predefined function in javascript used for mapping the array elements to be used for some other purpose. The map() method passes each element of the array on which it is invoked to the function you specify, and returns an array containing the values returned by that function.
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad