Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Reverses and stores in the same array
Explanation: The reverse() followed by a join() will reverse the respective array and will store the reversed array in the memory.
Explanation by: Mr. Dubey
The reverse() followed by a join() will reverse the respective array and will store the reversed array in the memory.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
323
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate