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 trial

Ruby Ruby Basics Strings Escape Sequences

new line character ruby not being accepted as correct answer ruby basics string escape characters

I am entering the answer correctly for ruby basics but its saying it;s wrong.

Challenge Task 1 of 1 Call puts with a string containing a newline character. Then call puts with a string containing a tab character. Finally, call puts a third time with a string containing a " double quotation mark.


puts "hello /n hi" puts "hello/t" puts '"hello" he said'

MY ERROR Bummer: For your first call to the "puts" method, the argument needs to contain a newline character.

puts "hello   /n hi"
puts "hello/t"
puts '"hello" he said'

1 Answer

Thanks Henrik! :-)