Ruby - Arrays
What does the Ruby method
reverse! do when called on an array?reverse! do when called on an array?reverse returns a new reversed array without changing the original, while reverse! reverses the array in place.reverse! modifies the original array by reversing its elements.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions