Ruby - Arrays
Which of the following is the correct syntax to reverse an array
arr in Ruby?arr in Ruby?reverse! called on the array object.arr.reverse! is valid Ruby syntax; others are incorrect method calls or misplaced symbols.reverse! to reverse array in place [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions