Ruby - Variables and Data Types
Find the error in this Ruby code snippet:
sym = :hello
sym << " world"
puts symFind the error in this Ruby code snippet:
sym = :hello
sym << " world"
puts symsym << " world" tries to modify the symbol, which causes a runtime error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions