Q. Which built-in method reverses the elements of an array?

  • (A) flip()
  • (B) reverse()
  • (C) turn()
  • (D) back()
πŸ’¬ Discuss
βœ… Correct Answer: (B) reverse()
Explanation: The reverse() method reverses the order of array elements.
Explanation by: Chandani
The reverse() method reverses the order of array elements.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
99
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
87%
Success Rate