Ruby - Hashes
Identify the error in this Ruby code:
arr = [1, 2, 3] arr(1) = 10 puts arr.inspect
arr = [1, 2, 3] arr(1) = 10 puts arr.inspect
arr(1) = 10 causes a syntax error; correct is arr[1] = 10.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions