Ruby - Arrays
What will be the output of this Ruby code?
arr = [3, 7, 4, 2] arr.sort! arr.reverse! p arr
arr = [3, 7, 4, 2] arr.sort! arr.reverse! p arr
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions