Ruby - Functional Patterns in Ruby
Identify the error in this Ruby code:
hash = {a: 1, b: 2}
hash.freeze
hash[:a] = 3
puts hash[:a]hash = {a: 1, b: 2}
hash.freeze
hash[:a] = 3
puts hash[:a]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions