Ruby - String Operations
What is wrong with this code snippet?
str = "Hi" str << nil puts str
str = "Hi" str << nil puts str
<< operator requires a string argument; nil is not a string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions