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

General Discussion

Can't Figure Out Challenge

I don't know what they want in this challenge???

The challenge is: Set the 'escapedNewLine' variable to the string of a new line character. and my solution is:

```var escapedNewLine = "These code challenges\n are too vauge"; var escapedBackslash = ""; var escapedTab = "";

but that is wrong. Anyone have any idea's?

2 Answers

Andy Swinford
Andy Swinford
8,286 Points

If I remember right, the answer is just what I have below:

var escapedNewLine = "\n";

Wow, that was it! Sometimes the challenges are pretty vague. I would click best answer, but there is no option.

Hi Douglas,

There isn't an option to do that for "General Discussion" I believe you can edit your post and change the category to "javascript" then you'll be able to select "best answer"

As far as the challenge instructions go, you want to read the instructions as literally as you can.