Ruby - Arrays
Find the bug in this Ruby code:
arr = [10, 5, 8] sorted = arr.sort.reverse! p sorted
arr = [10, 5, 8] sorted = arr.sort.reverse! p sorted
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions