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 trialNathan Begnaud
8,221 PointsCan't Figure This Out
My code var escapedNewLine = "\n"; var escapedBackslash = "\n"; var escapedTab = "";
it keeps saying my string is not valid and i need two more backlashes. What?
2 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Nathan,
For escapedBackslash
you have repeated the newline character.
To escape a backslash you need 2 of them \\
Mohamed Mokhtar
9,651 Pointsvar escapedTap should be \t
you have figured out the first challegne just right , your problem is about the two other challenges
Nathan Begnaud
8,221 PointsNathan Begnaud
8,221 PointsThanks all I needed was two \ and that was the answer lol
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsYou're welcome.