Ruby - String Operations
Find the error in this Ruby code:
str = " Hello " puts str.strip.upcase()
str = " Hello " puts str.strip.upcase()
strip and upcase are valid Ruby string methods and can be chained.upcase() is valid and strip without parentheses is also valid.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions