1.

Which of the following is the predefined function for array reversal in javascript?(a) reverse()(b) arr_reverse()(c) array_reverse()(d) rev()This interesting question is from Arrays Types topic in chapter Arrays Types of Data Structures & Algorithms II got this question in final exam.

Answer»

Right answer is (a) REVERSE()

EASY EXPLANATION - The predefined function for REVERSING an array is reverse() in javascript. It does not requires any argument.



Discussion

No Comment Found

Related InterviewSolutions