Ruby - Hashes
What is the output of the following Ruby code?
arr = [10, 20, 30] arr[1] = 50 puts arr.inspect
arr = [10, 20, 30] arr[1] = 50 puts arr.inspect
arr[1] = 50 changes the element at index 1 (second element) to 50.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions