Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

Answer: a
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.

Join The Discussion