Examveda
Examveda

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. All of the mentioned

Answer: Option A

Solution(By Examveda Team)

The reverse() followed by a join() will reverse the respective array and will store the reversed array in the memory.

Join The Discussion

Related Questions on Array and Function