[Solved] Which of the following is the predefined function for array reversal in javascript?

Which of the following is the predefined function for array reversal in javascript?

a) reverse()
b) arr_reverse()
c) array_reverse()
d) rev()

Answer: a
Explanation: The predefined function for reversing an array is reverse() in javascript. It does not requires any argument.

Comments