NIELIT O Level Exam

What will happen if reverse() and join() methods are used simultaneously?

What will happen if reverse() and join() methods are used simultaneously?

क्या होगा यदि रिवर्स () और जॉइन () मेथड का एक साथ यूज़ किया जाता है?

A. Reverses and stores in the same array एक ही ऐरे में रिवर्स और स्टोर

B. Reverses and concatenates the elements of the array ऐरे के एलिमेंट्स को उलट देता है और जोड़ता है

C. Reverses रिवर्सेज़

D. Stores the elements of an array in normal order किसी ऐरे के एलिमेंट्स को नॉर्मल ऑर्डर में स्टोर करता है




Correct Answer is :

A. Reverses and stores in the same array



Explanation
The array.join() method is an inbuilt function in JavaScript which is used to join the elements of an array into a string. The reverse() followed by a join() will reverse the respective array and will store the reversed array in the memory.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad