Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAtanas Sqnkov
14,981 PointsA mistaken answer option?
In the question:
What string method removes whitespace only at the end of a string?
The correct answer is "chop". Isn't it supposed to be "chomp"?
2 Answers
Maciej Czuchnowski
36,441 PointsBoth methods exist, check the ruby documentation to know the difference. It is very slight, I'm not sure why the quiz wants chop
specifically.
Atanas Sqnkov
14,981 PointsYeah, I just noticed. Thanks!